freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] CIDFont support


From: Juliusz Chroboczek
Subject: Re: [Freetype] CIDFont support
Date: 11 Apr 2002 17:15:31 +0100

>> Why that ? I thought that this could be handled through a FT_Attach_File
>> or FT_Attach_Stream call,

YH> Yes.  There are some reasons.

YH> 1.  cmap->encoding is not enough to handle CIDCMap.
YH> 2.  The CID CMap may convert charcter code to glyph name.

I'm not sure I follow you.

In a TTF font, all glyphs are identified by glyph indices.  In a
CIDFont, there are two ways to identify a glyph: by CID or by glyph
index (obtained by numbering the glyphs in the font sequentially from 0).

A CMap is merely a compact serialisation of a partial mapping from a
given code space to a given CID space.  As far as I recall, LoadGlyph
and friends already take CIDs, and I cannot see how there could be a
problem with reflecting the structure of a CMap in the FreeType
library.

On the other hand, I agree with you that it may be difficult to
describe an arbitrary CMap in terms of Unicode as FreeType usually
does.  But that wouldn't make sense -- only Unicode CMaps should be
reflected as Unicode FreeType CharMaps.

YH> And there are other reasons.  But I have enough time to describe this
YH> topic.  Please wait.

We're holding our breaths.

                                        Juliusz


reply via email to

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