From d80bb587235819c0bead853a8bd3bd1c3c9b2ace Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Dec 2016 14:14:48 -0800 Subject: [PATCH] More STAT --- Lib/fontTools/ttLib/tables/otConverters.py | 4 ++-- Lib/fontTools/ttLib/tables/otData.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/otConverters.py b/Lib/fontTools/ttLib/tables/otConverters.py index b8aba73f7..d787e47f7 100644 --- a/Lib/fontTools/ttLib/tables/otConverters.py +++ b/Lib/fontTools/ttLib/tables/otConverters.py @@ -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.""" diff --git a/Lib/fontTools/ttLib/tables/otData.py b/Lib/fontTools/ttLib/tables/otData.py index 590fbd8f8..5a1f7c859 100644 --- a/Lib/fontTools/ttLib/tables/otData.py +++ b/Lib/fontTools/ttLib/tables/otData.py @@ -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', [