_c_i_d_g.py 787 B

12345678910111213141516171819
  1. # coding: utf-8
  2. from .otBase import BaseTTXConverter
  3. class table__c_i_d_g(BaseTTXConverter):
  4. """The AAT ``cidg`` table has almost the same structure as ``gidc``,
  5. just mapping CIDs to GlyphIDs instead of the reverse direction.
  6. It is useful for fonts that may be used by a PDF renderer in lieu of
  7. a font reference with a known glyph collection but no subsetted
  8. glyphs. For instance, a PDF can say “please use a font conforming
  9. to Adobe-Japan-1”; the ``cidg`` mapping is necessary if the font is,
  10. say, a TrueType font. ``gidc`` is lossy for this purpose and is
  11. obsoleted by ``cidg``.
  12. For example, the first font in ``/System/Library/Fonts/PingFang.ttc``
  13. (which Apple ships pre-installed on MacOS 10.12.6) has a ``cidg`` table."""
  14. pass