pdf - How get symbols of glyphs in CFF font -


i parsing cff file. table glyphs, whick looks gc4g38gfcgd7g70g4bgeag39gfdg4cgebgfeg72g4dgec... names. have offsets each glyph , have offsets charstringindex. have associate glyphs manes symbols. have do? offsets don't explain symbol.

it depends on kind of encoding cff relies on: follow of predefined charset/encodings, or free charset/encoding cff block? (which type is recorded in top dict structure)

if first, glyph names defined adobe's charset/encoding specifications , not stored in font itself. if you're writing parser, you'll need code predefined encodings associated glyph names. if font follows 1 of these, must contain every character in set, in predefined glyph ordering (so cff following encoding x have glyph named 23rd name string in glyph position 23).

if second, names each glyph stored in string block, every other string in cff (but offset 390, because there many documentation-specified strings apply cff , not need stored explicitly in cff data). find glyph's name, use charset structure, tells string id belongs glyph. in string index find offset id at, , grab string string data block on offset.

i wrote http://pomax.github.io/cff-glyphlet-fonts purposes of explaining cff layout, you'll want give look-over.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -