Home | History | Annotate | Download | only in fontTools

Lines Matching refs:table

27       assert clazz.__name__ != 'DefaultTable', 'Oops, table class not found.'
585 lookup = s.table.LookupList.Lookup[ll.LookupListIndex]
612 lookup = s.table.LookupList.Lookup[ll.LookupListIndex]
630 lookup = s.table.LookupList.Lookup[ll.LookupListIndex]
977 s.table = self.table
978 if self.table.ScriptList:
979 feature_indices = self.table.ScriptList.collect_features()
982 if self.table.FeatureList:
983 lookup_indices = self.table.FeatureList.collect_lookups(feature_indices)
986 if self.table.LookupList:
990 if i >= self.table.LookupList.LookupCount: continue
991 if not self.table.LookupList.Lookup[i]: continue
992 self.table.LookupList.Lookup[i].closure_glyphs(s)
995 del s.table
1001 if self.table.LookupList:
1002 lookup_indices = self.table.LookupList.subset_glyphs(s)
1014 if self.table.LookupList:
1015 self.table.LookupList.subset_lookups(lookup_indices)
1016 if self.table.FeatureList:
1017 feature_indices = self.table.FeatureList.subset_lookups(lookup_indices)
1020 if self.table.ScriptList:
1021 self.table.ScriptList.subset_features(feature_indices)
1027 if self.table.ScriptList:
1028 feature_indices = self.table.ScriptList.collect_features()
1031 if self.table.FeatureList:
1032 lookup_indices = self.table.FeatureList.collect_lookups(feature_indices)
1035 if self.table.LookupList:
1036 lookup_indices = self.table.LookupList.closure_lookups(lookup_indices)
1044 if self.table.FeatureList:
1046 enumerate(self.table.FeatureList.FeatureRecord)
1048 self.table.FeatureList.subset_features(feature_indices)
1051 if self.table.ScriptList:
1052 self.table.ScriptList.subset_features(feature_indices)
1058 if self.table.ScriptList:
1059 feature_indices = self.table.ScriptList.collect_features()
1062 if self.table.FeatureList:
1063 self.table.FeatureList.subset_features(feature_indices)
1064 if self.table.ScriptList:
1065 self.table.ScriptList.subset_features(feature_indices)
1076 if self.table.LookupList:
1077 self.table.LookupList.prune_pre_subset(options);
1083 table = self.table
1084 if not table.ScriptList or not table.FeatureList:
1087 features = table.FeatureList.FeatureRecord
1089 for s in table.ScriptList.ScriptRecord:
1115 table = self.table
1118 if table.LookupList:
1119 table.LookupList.prune_post_subset(options);
1122 #if not table.LookupList.Lookup:
1123 # table.LookupList = None
1125 if not table.LookupList:
1126 table.FeatureList = None
1128 if table.FeatureList:
1135 #if table.FeatureList and not table.FeatureList.FeatureRecord:
1136 # table.FeatureList = None
1142 #if table.ScriptList and not table.ScriptList.ScriptRecord:
1143 # table.ScriptList = None
1150 table = self.table
1151 if table.LigCaretList:
1152 indices = table.LigCaretList.Coverage.subset(glyphs)
1153 table.LigCaretList.LigGlyph = [table.LigCaretList.LigGlyph[i]
1155 table.LigCaretList.LigGlyphCount = len(table.LigCaretList.LigGlyph)
1156 if table.MarkAttachClassDef:
1157 table.MarkAttachClassDef.classDefs = dict((g,v) for g,v in
1158 table.MarkAttachClassDef.
1161 if table.GlyphClassDef:
1162 table.GlyphClassDef.classDefs = dict((g,v) for g,v in
1163 table.GlyphClassDef.
1166 if table.AttachList:
1167 indices = table.AttachList.Coverage.subset(glyphs)
1168 GlyphCount = table.AttachList.GlyphCount
1169 table.AttachList.AttachPoint = [table.AttachList.AttachPoint[i]
1172 table.AttachList.GlyphCount = len(table.AttachList.AttachPoint)
1173 if hasattr(table, "MarkGlyphSetsDef") and table.MarkGlyphSetsDef:
1174 for coverage in table.MarkGlyphSetsDef.Coverage:
1178 #indices = table.MarkGlyphSetsDef.Coverage = [c for c in table.MarkGlyphSetsDef.Coverage if c.glyphs]
1183 table = self.table
1185 if table.LigCaretList and not table.LigCaretList.LigGlyphCount:
1186 table.LigCaretList = None
1187 if table.MarkAttachClassDef and not table.MarkAttachClassDef.classDefs:
1188 table.MarkAttachClassDef = None
1189 if table.GlyphClassDef and not table.GlyphClassDef.classDefs:
1190 table.GlyphClassDef = None
1191 if table.AttachList and not table.AttachList.GlyphCount:
1192 table.AttachList = None
1193 if hasattr(table, "MarkGlyphSetsDef") and table.MarkGlyphSetsDef and not table.MarkGlyphSetsDef.Coverage:
1194 table.MarkGlyphSetsDef = None
1195 if table.Version == 0x00010002/0x10000:
1196 table.Version = 1.0
1197 return bool(table.LigCaretList or
1198 table.MarkAttachClassDef or
1199 table.GlyphClassDef or
1200 table.AttachList or
1201 (table.Version >= 0x00010002/0x10000 and table.MarkGlyphSetsDef))
1205 # Prune unknown kern table types
1226 return True # Required table
1245 return True # Required table
1250 return True # Required table
1328 # CFF table must have one font only
1705 for table in tables:
1706 if table.format == 14:
1707 for l in table.uvsDict.values():
1713 if u in table.cmap:
1714 s.glyphs.add(table.cmap[u])
1730 return True # Required table
1762 return True # Required table
1774 return True # Required table
1785 # TODO(behdad) Optionally drop 'kern' table if GPOS available
1951 table = font[tag]
1953 retain = table.prune_pre_subset(self.options)
2025 table = font[tag]
2027 retain = table.subset_glyphs(self)
2050 table = font[tag]
2051 retain = table.prune_post_subset(self.options)