On 22/03/17 18:00, Werner LEMBERG wrote:
Parsing the CMap table will give you a mapping from character code
to CID, which you can then use to pull the glyph from the font. (In
Postscript terms you "compose" the CIDFont with the CMap to create a
usable instance of the CIDFont).
CMaps are defined in a highly restricted variant of Postscript, so
should be fairly easy to parse.
It would be nice if someone could add parsing of CMap files for CFFs
to FreeType, similar to attaching AFM files to Type 1 fonts...
The problem would be that you can compose several CIDFonts with a CMap
to produce a composite font (PDF specifically restricts it to one
descendant CIDFont, but that's specific to PDF).
I'm not sure if it would be possible to handle that case in Freetype.
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype