From: Christian Bayle <bayle@debian.org>
Date: Mon, 14 Apr 2025 20:45:30 +0200
Subject: Replace arkpandora fonts

---
 src/jpgraph.php     | 18 +++++++++---------
 src/jpgraph_dir.php |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/jpgraph.php b/src/jpgraph.php
index 2abec51..bb91c05 100644
--- a/src/jpgraph.php
+++ b/src/jpgraph.php
@@ -1095,12 +1095,12 @@ class TTF {
     function __construct() {
 	// Base file names for available fonts
 	$this->font_fam=array(
-	    FF_COURIER => TTF_DIR."Courier_New",
-	    FF_VERDANA => TTF_DIR."Veranda",
-	    FF_TIMES => TTF_DIR."Times",
-	    FF_HANDWRT => TTF_DIR."Handwriting",
+	    FF_COURIER => TTF_DIR."croscore/Cousine-Regular",
+	    FF_VERDANA => TTF_DIR."liberation/LiberationSans",
+	    FF_TIMES => TTF_DIR."croscore/Tinos-Regular",
+	    FF_HANDWRT => TTF_DIR."fifthhorseman/dkg",
 	    FF_COMIC => TTF_DIR."Comic",
-	    FF_ARIAL => TTF_DIR."Aerial",
+	    FF_ARIAL => TTF_DIR."liberation/LiberationSans",
 	    FF_BOOK => TTF_DIR."Bookant",
             FF_LIBERATION_SANS => LIBERATION_DIR."LiberationSans-Regular");
     }
@@ -1112,13 +1112,13 @@ class TTF {
 	$f=$this->font_fam[$fam];
 	if( !$f ) (new JpGraphError())->Raise("<b>JpGraph Error:</b> Unknown TTF font family.");
 	switch( $style ) {
-	    case FS_NORMAL:
+	    case FS_NORMAL: $f .= "-Regular";
 		break;
-	    case FS_BOLD: $f .= "Bd";
+	    case FS_BOLD: $f .= "-Bold";
 		break;
-	    case FS_ITALIC: $f .= "It";
+	    case FS_ITALIC: $f .= "-Italic";
 		break;
-	    case FS_BOLDIT: $f .= "BdIt";
+	    case FS_BOLDIT: $f .= "-BoldItalic";
 		break;
 	    default:
 		(new JpGraphError())->Raise("<b>JpGraph Error:</b> Unknown TTF Style.");
diff --git a/src/jpgraph_dir.php b/src/jpgraph_dir.php
index feaaf24..af9940a 100644
--- a/src/jpgraph_dir.php
+++ b/src/jpgraph_dir.php
@@ -25,7 +25,7 @@ DEFINE("CACHE_DIR","/var/cache/jpgraph/");
 DEFINE("APACHE_CACHE_DIR","/jpgraph_cache/");
 
 // Directory for TTF fonts. Must end with '/'
-DEFINE("TTF_DIR","/usr/share/fonts/truetype/arkpandora/");
+DEFINE("TTF_DIR","/usr/share/fonts/truetype/");
 
 // Add Free liberation font as suggested by Alain Peyrat
 DEFINE("LIBERATION_DIR","/usr/share/fonts/truetype/liberation/");
