NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
dfont (Score:2)
Re:dfont (Score:1)
I'll do some research and see if they can be implemented fairly easily.
The only problem is that Imager tends to work at one face per file, so I'll need to add an extra parameter to select the face to be used.
Re:dfont (Score:2)
Re:dfont (Score:1)
It turns out Imager will use a dfont, but you only get access to the first face in the font.
You need to tell it which driver to use though:
my $font = Imager::Font->new(file=>$font, type=>ft2) or die Imager->errstrThis works mostly because freetype2 is so cool :)
Now to see if I can figure out why you can only get the first face.
Re:dfont (Score:1)
If you configure freetype 2 with:
Then you can use the index parameter to access the other faces of a suitcase or dfont.
Re:dfont (Score:2)
Reply to This
Parent