Tuesday December 21, 2004
11:27 PM
New Imager
I finally released Imager 0.44.
Now for 0.45...
I'm looking to:
- improve the library probe mechanism - in particular to use freetype-config/pkg-config if it's available
- audit some of the other built-in image file format code
- add a cookbook (documentation), and
- probably other clean-up along the way
Doing this type of clean-up isn't the most exciting thing in the world, but I'd like to have a clean base to add new features to when I get around to it.
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)
Re:dfont (Score:2)
Re:dfont (Score:1)
Re:dfont (Score:2)