Re: [GD-DEVEL] GD font handling

[email protected] (Ethan A Merritt)
Newsgroups php.gd.devel
Organization University of Washington
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.