[Top][All Lists]
[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: |
Thu, 26 Jun 2008 00:29:16 +0200 (CEST) |
> In my case, I need to work with the OpenType tables directly, but
> these are all keyed by glyph index. Here, "glyph index" is a simple
> enumeration of all the glyphs in the font. Often, "glyph index" is
> the same as the CID, but for subset fonts, it doesn't need to be. I
> need a way to map from CID, which is what FreeType uses in
> FT_Load_Glyph, to the glyph index, which is what the internal
> OpenType tables use.
With other words, you want to access cff_charset_cid_to_gindex (from
cffload.c)? Yes, I think that adding such code to ftcid.c (using a
service) is the right solution.
Werner