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