freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Convert glyphs to/from CIDs?


From: Werner LEMBERG
Subject: Re: [ft-devel] Convert glyphs to/from CIDs?
Date: Wed, 25 Jun 2008 23:12:15 +0200 (CEST)

> I have a CID-keyed font, and I need to obtain the underlying glyphs in
> the font for CIDs and vice-versa.  Is there a public function which
> does this already?

What exactly do you mean?  [This is FreeType 2.3.6] If you call
FT_Load_Glyph for a CID-keyed font, you enter the CID, and you get
back the glyph structure.

> As an aside, I was surprised to find that the "num_glyphs" field in
> FT_FaceRec doesn't provided the number of CIDs for CID-keyed fonts,
> but instead the number of glyphs.

This is a documentation error.  It *does* provide the number of CIDs
for CID-keyed fonts.  I've just fixed it in the documentation.


    Werner




reply via email to

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