Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: true type font in GD::Graph

by hawtin (Prior)
on Sep 03, 2009 at 15:55 UTC ( #793232=note: print w/replies, xml ) Need Help??

in reply to true type font in GD::Graph

Its been a while since I last looked at fonts in GD. I have an old piece of code that says:

# $image->stringFT($line,'/dosc/windows/Fonts/arialnb.ttf', # 12,0, # $border+int($x), # int($y), # $name); $image->string(gdMediumBoldFont, int($x)-$x_offset, int($y), $name,$line);

My recollection is that the commented out stringFT() method worked OK but there was some other issue with it (finding fonts on other machines for example). So in the end I had to resort to the gd*Font set.

Hope that helps.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://793232]
[stevieb]: use metamod::DateTime. Don't fsck around. Seriously. As someone who's done sensitive date/time stuff, don't roll your own. Use what is available and known stable. Do not guess.
[stevieb]: Date::Time even
[stevieb]: ffs I can't make DateTime link properly, so there.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-04-29 04:19 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.