freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] FT_Get_Char_Index.


From: gww
Subject: Re: [ft-devel] FT_Get_Char_Index.
Date: Fri, 21 Jul 2006 20:55:51 -0700
User-agent: Internet Messaging Program (IMP) 3.2

Quoting Rajeev Pahuja <address@hidden>:

> " If you use FreeType to manipulate the contents of font files directly,
> be aware that the glyph index returned by this function doesn't always
> correspond to the internal indices used within the file."
> 
> Is this relevant to all formats or only few ?  Specifically TrueType,
> OpenType and Type1 ?
The only case I am aware of (the only one that has bitten me) is that if the 
".notdef" character of a Type1 font is at any position other than 0 then its 
index will be swapped with the glyph at index 0. (That's from memory)

I presume the same thing might happen to some other font format (svg?) where 
the 
position of ".notdef" is not mandated in the spec -- I believe freetype will 
reorder the font so that ".notdef" is always at index 0. But that's just a 
guess.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]