I have MinionPro-Regular.otf file. I working with it's structure. I have found it have:
Table 'hhea': reference on 1668 metrics in 'hmtx' table.
Table 'hmtx': 1668 pairs of hMetrics('advanceWidth', 'leftSideBearing').
Table 'CFF ': 1429 glyph names.
Table 'CFF ': param 'CharStrings' have offset to the index of 1668 elements.
Each element consist the Width property if it is not the same
as DefaultWidth.
CFF specification told as, that OTF font total glyphs quantity (or just presented in CFF stream of PDF file if the font is embedded) has to be:
- with predefined ISO Adobe charset (228 names)
1429 + 228 = 1649
; - with predefined "Expert" charset (115 names)
1429 + 115 = 1544
; - with predefined "Expert Subset" charset (86 names)
1429 + 116 = 1515
.
The closest to 1668 number is 1649, but the difference 19 means I lost some thing important in this indexing idea.
The questions are:
- Where is relation between the names INDEX and the metrics/charstrings INDEX?
- Where is the FLAG, what kind of predefined charset in use?
IMPORTANT UPDATE
The Charsets do not matter! It was the wrong way!