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