Re: [GD-DEVEL] GD font handling

From: Date: Wed, 04 Jul 2007 21:38:42 +0000
Subject: Re: [GD-DEVEL] GD font handling
References: 1  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-223@lists.php.net to get a copy of this message
On Wednesday 04 July 2007 12:19, Jeff Smith wrote: > Hi all, > > I'm a relatively clueless user of GD in a PHP environment. I would > like to have more information about GD's font handling. I have a > custom unicode TTF font, made by a colleague using Fontlab (on a > Macintosh) on top of a normal Times TTF unicode font. > > This font does not work when I try to render any portion of text into > an image on the fly in GD/PHP. My code is not the problem - with all > my "normal" unicode fonts, it works. Just not with this custom unicode > font. I'm wondering what I have to tell my colleague in order to make > it work. What sorts of TTF format or specification must be used with > GD? You could try running the file through "ttf2pt1 -F". This option claims: -F - Force the Unicode encoding: any type of MS encoding specified in the font is ignored and the font is treated like it has Unicode encoding. WARNING: this option is intended for buggy fonts which actually are in Unicode but are marked as something else. The effect on the other fonts is unpredictable. If the resulting Type1 font works, it would be a large clue. Ethan -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742

« previous php.gd.devel (#223) next »