Thread View: adobe.opentype.developers.fdk
2 messages
2 total messages
Started by mostafa_mohamed
Thu, 02 Apr 2009 09:27
Cmaps and characters code
Author: mostafa_mohamed
Date: Thu, 02 Apr 2009 09:27
Date: Thu, 02 Apr 2009 09:27
1 lines
958 bytes
958 bytes
try to extract glyphIndex from cmap tables ,I'd like to ask about if a character code maybe appear in many cmap tables for Ex: a character code can appear in both cmap0 and cmap4 tables? and if this case happened then should the glyphIndex of the character be extracted from the higher cmap
Re: Cmaps and characters code
Author: Thomas_Phinney
Date: Fri, 03 Apr 2009 03:32
Date: Fri, 03 Apr 2009 03:32
15 lines
1523 bytes
1523 bytes
Yes, a character code may appear in multiple cmap subtables. See the OpenType spec: <http://www.microsoft.com/Typography/otspec/cmap.htm> Which cmap subtable you would use to access the character would depend on your particular needs. What kind of codepoint are you trying to look up the glyph with? You say "cmap0" and "cmap4" but you don't specify whether the 0 and 4 refer to platform, encoding, or format. I'm going to guess that you are referring to format 0 and format 4. First, I would say that one would normally pick a cmap based first on platform/encoding, and only secondarily on format. Cmap format 0 is an old Apple format, limited to 256 encoded glyphs, seen in conjunction with platform=specific encoding(s), notably MacRoman. Format 4 is one of several ways of representing Unicode codepoints, with the limitation that it can only deal with codepoints in the Basic Multilingual Plane or BMP. Cheers, T
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads