Dustismo_Sans.ttf is in pwd. And I have tried "Dustismo_Sans" and "Dustismo_Sans.ttf" and "/home/john/Dustismo_Sans.ttf" for $font_specmy $font_spec = "Dustismo_Sans"; $my_graph->set_y_label_font($font_spec, 12); $my_graph->set_x_label_font($font_spec, 12); $my_graph->set_y_axis_font($font_spec, 10); $my_graph->set_x_axis_font($font_spec, 36); $my_graph->set_title_font($font_spec, 48); $my_graph->set_legend_font($font_spec, 8); $my_graph->set_values_font($font_spec, 8);
Whatever I put in $font_spec or in the size field, the appearance of the resulting image is always the same!
Questions:
1. I assume that GD would look for the font file given a relative (to pwd) file name or an absolute file name. Correct?
2. Why can I not change size or font?
3. My OS is FC 8. I loaded msttcorefonts-2.0-1.spec, Microsoft TTL fonts, and they are usable by OpenOffice but I cannot locate corresponding .ttf files. Do they exist as such and if so, where are they?
Thanks
uname -a Linux scan 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 19:19:45 EST 2008 i686 i6 +86 i386 This is perl, v5.8.8 built for i386-linux-thread-multi GD-2.45 GDGraph-1.44 GDTextUtil-0.86
In reply to GD::Graph cannot change font by kp2a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |