jpgraph error 2591 : problem with True type fonts.

271 views
Skip to first unread message

niocco

unread,
Mar 2, 2015, 9:21:39 AM3/2/15
to jpg...@googlegroups.com
Hello,
A fresh install of a database monotoring tool ( asemon ) using jpgraph display error messages on a couple of graph saying that "internal fonts does not support drawing at arbitrary angle". and advising to use TTF fonts instead.

So i assume that jpgraph started to search somewhere a TTF file, but could not find it, so he used a system font instead.
This is surely an installation issue

To solve it, i would like to know where he looks for fonts, and what files are requiered.

An annoying thing is that i found a src/fonts directory containing these files :
DejaVuSans.ttf
DejaVuSans-Oblique.ttf
DejaVuSans-Bold.ttf
DejaVuSans-BoldOblique.ttf
FF_FONT2.gdf
FF_FONT2-Bold.gdf
FF_FONT1.gdf
FF_FONT1-Bold.gdf
FF_FONT0.gdf
FF_FONT0-Bold.gdf
I assume that this is what jpgraph need no ? then why does he complain about that ?
Does someone know a way to solve this ?
graphCPU.png

Eric Delcamp

unread,
Mar 2, 2015, 11:12:30 AM3/2/15
to jpg...@googlegroups.com
Hi,
You can configure your font path in src/jpg-config-inc.inc.php or overwrite it in your code.

niocco

unread,
Mar 2, 2015, 11:26:00 AM3/2/15
to jpg...@googlegroups.com
Hello Eric,

i did try several things in this way but never found something fine.
Alternatively, i found a post somewhere saying that php must be compiled with gd freetype.
I'm asking the system admin to do that and as soon as i get a result i'll post a feedback here

Regards
Reply all
Reply to author
Forward
0 new messages