cidg: CID to Glyph ID table
- class fontTools.ttLib.tables._c_i_d_g.table__c_i_d_g(tag=None)
cidgtable has almost the same structure as
gidc, just mapping CIDs to GlyphIDs instead of the reverse direction.
It is useful for fonts that may be used by a PDF renderer in lieu of a font reference with a known glyph collection but no subsetted glyphs. For instance, a PDF can say “please use a font conforming to Adobe-Japan-1”; the
cidgmapping is necessary if the font is, say, a TrueType font.
gidcis lossy for this purpose and is obsoleted by
For example, the first font in
/System/Library/Fonts/PingFang.ttc(which Apple ships pre-installed on MacOS 10.12.6) has a
Compiles the table into binary. Called automatically on save.
- decompile(data, font)
Create an object from the binary data. Called automatically on access.
- dependencies = 
- fromXML(name, attrs, content, font)
- merge(m, tables)
- toXML(writer, font)
- tryPackingHarfbuzz(writer, hb_first_error_logged)
- tryResolveOverflow(font, e, lastOverflowRecord)