I finally released Imager 0.44.
Now for 0.45...
I'm looking to:
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.
Re:dfont
tonyc on 2004-12-23T02:28:50
There's no support there now, though freetype2 does seem to have some functions to handle them.
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
pudge on 2004-12-23T02:44:01
FWIW, dfonts seem to work just fine with GD (I use GD 1.41).Re:dfont
tonyc on 2004-12-23T03:50:27
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
tonyc on 2004-12-23T06:38:00
If you configure freetype 2 with:
./configure --with-old-mac-fonts Then you can use the index parameter to access the other faces of a suitcase or dfont.
Re:dfont
pudge on 2004-12-23T09:27:41
What index parameter?Re:dfont
pudge on 2004-12-23T07:00:39
Hmmm. I'll have to try that out, thanks. I'll let you know how it goes.:-) Re:dfont
pudge on 2004-12-23T08:48:38
Having problems getting Imager (0.44) with freetype2.It goes on like that a bit. I am trying to use the freetype2 that comes with Mac OS X in with X11R6, and I manually addedfreetyp2.c:44: error: parse error before "library"
freetyp2.c:44: warning: data definition has no type or storage class
freetyp2.c: In function `i_ft2_init':
freetyp2.c:57: error: `FT_Error' undeclared (first use in this function)
freetyp2.c:57: error: (Each undeclared identifier is reported only once
freetyp2.c:57: error: for each function it appears in.)
freetyp2.c:57: error: parse error before "error"
freetyp2.c:60: error: `error' undeclared (first use in this function)/usr/X11R6/include and /usr/X11R6/include/freetype2 and /usr/X11R6/lib. Re:dfont
pudge on 2004-12-23T08:57:59
Looks like it was a problem with something in/sw/include. I removed that for compiling freetyp2.c and it worked fine.