From 9a1919238ff364afba788ca3d82210cfcc031b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Tue, 4 Mar 2014 08:19:59 +0100 Subject: [PATCH 1/2] TCPDF: Replaced missing courier monotype font by provided freemono The courier font is missing from TCPDF's directory. This leads to "TCPDF ERROR: Could not include font definition file: courier" being outputed by PHP when the library attempts to render an element with a monotyped font. Use freemono instead since it's a better alternative (e.g. supports more glyphs) and is already shipped with Dolibarr. --- htdocs/includes/tcpdf/tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/tcpdf/tcpdf.php b/htdocs/includes/tcpdf/tcpdf.php index 1d11d636fcd..b500e2d70bf 100644 --- a/htdocs/includes/tcpdf/tcpdf.php +++ b/htdocs/includes/tcpdf/tcpdf.php @@ -1258,7 +1258,7 @@ class TCPDF { * @protected * @since 4.5.025 (2009-03-10) */ - protected $default_monospaced_font = 'courier'; + protected $default_monospaced_font = 'freemono'; /** * Cloned copy of the current class object. From 2f150a89276d8cf9b42ae7ee234234a2d3c3f55c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Thu, 6 Mar 2014 18:15:50 +0100 Subject: [PATCH 2/2] Updated dolibarr_changes --- dev/dolibarr_changes.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/dolibarr_changes.txt b/dev/dolibarr_changes.txt index 2bf2e1a5c99..7f3490da165 100644 --- a/dev/dolibarr_changes.txt +++ b/dev/dolibarr_changes.txt @@ -39,6 +39,11 @@ into // initialize subsetchars $subsetchars = array_fill(0, 256, true); +* Made freemono the default monotype font because we removed courier +In htdocs/includes/tcpdf/tcpdf.php +- protected $default_monospaced_font = 'courier'; ++ protected $default_monospaced_font = 'freemono'; + JSGANTT: --------