More STAT
This commit is contained in:
parent
913b3c477c
commit
d80bb58723
@ -23,7 +23,7 @@ def buildConverters(tableSpec, tableNamespace):
|
||||
if name.startswith("ValueFormat"):
|
||||
assert tp == "uint16"
|
||||
converterClass = ValueFormat
|
||||
elif name.endswith("Count") or name.endswith("LookupType") or name.endswith("RecordSize"):
|
||||
elif name.endswith("Count") or name.endswith("LookupType"):
|
||||
assert tp in ("uint16", "uint32")
|
||||
converterClass = ComputedUShort if tp == 'uint16' else ComputedULong
|
||||
elif name == "SubTable":
|
||||
@ -95,7 +95,7 @@ class BaseConverter(object):
|
||||
self.tableClass = tableClass
|
||||
self.isCount = name.endswith("Count")
|
||||
self.isLookupType = name.endswith("LookupType")
|
||||
self.isPropagated = name in ["ClassCount", "Class2Count", "FeatureTag", "SettingsCount", "VarRegionCount", "MappingCount", "RegionAxisCount", 'DesignAxisCount', 'AxisValueCount']
|
||||
self.isPropagated = name in ["ClassCount", "Class2Count", "FeatureTag", "SettingsCount", "VarRegionCount", "MappingCount", "RegionAxisCount", 'DesignAxisCount', 'DesignAxisRecordSize', 'AxisValueCount']
|
||||
|
||||
def readArray(self, reader, font, tableDict, count):
|
||||
"""Read an array of values from the reader."""
|
||||
|
@ -860,6 +860,7 @@ otData = [
|
||||
('Tag', 'AxisTag', None, None, 'A tag identifying the axis of design variation'),
|
||||
('uint16', 'AxisNameID', None, None, 'The name ID for entries in the "name" table that provide a display string for this axis'),
|
||||
('uint16', 'AxisOrdering', None, None, 'A value that applications can use to determine primary sorting of face names, or for ordering of descriptors when composing family or face names'),
|
||||
('uint8', 'MoreBytes', 'DesignAxisRecordSize', -8, 'Extra bytes. Set to empty array.'),
|
||||
]),
|
||||
|
||||
('AxisValueArray', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user