freetype
[Top][All Lists]
Advanced

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

Re: [ft] Handling an embedded CID font using Freetype


From: Chris Liddell
Subject: Re: [ft] Handling an embedded CID font using Freetype
Date: Wed, 22 Mar 2017 19:05:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

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.




reply via email to

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