View Issue Details

IDProjectCategoryView StatusLast Update
0010706mantisbtreportspublic2011-09-08 03:17
Reportervboctor Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionnot fixable 
PlatformIntel x64OSMac OS XOS Version10.5.7
Product Versiongit trunk 
Summary0010706: Graphs Plugin: Unable to read/find font
Description

I get the above error for all graphs on the Mac OS X platform. I'm not using jpgraph.

TagsNo tags attached.

Relationships

related to 0010694 closedthraxisp graph by category broken 

Activities

dhx

dhx

2009-07-10 21:23

reporter   ~0022477

Did you set $g_system_font_folder to the location where your font files are located?

vboctor

vboctor

2009-07-11 01:18

manager   ~0022480

I played around with font folder / names. I haven't checked the code.

$g_system_font_folder = '/System/Library/Fonts/';
$g_graph_font = 'Courier.dfont';
$g_font_per_captcha = 'Courier.dfont';
#$g_graph_font = 'Thonburi.ttf';
#$g_font_per_captcha = 'Thonburi.ttf';

thraxisp

thraxisp

2009-07-14 21:01

reporter   ~0022499

The GD libraries don't handle Mac fonts directly. The best bet is to download a set of TrueType fonts and reference them using the "system_font_path". You may need the fix in bug# 10694 to make jpgraph work.

thraxisp

thraxisp

2009-07-14 21:04

reporter   ~0022500

See http://corefonts.sourceforge.net/ for details on getting Arial, Verdana, et al.

vboctor

vboctor

2011-09-08 03:17

manager   ~0029659

Mac truetype fonts can be downloaded from: http://support.uni-klu.ac.at/PhpKurs/0300_JpGraph_Bibliothek
$g_system_font_folder should be pointed to the folder that contains the truetype fonts.