diff --git a/Lib/fontTools/ttLib/tables/T_S_I_C_.py b/Lib/fontTools/ttLib/tables/T_S_I_C_.py new file mode 100644 index 000000000..b4684a467 --- /dev/null +++ b/Lib/fontTools/ttLib/tables/T_S_I_C_.py @@ -0,0 +1,7 @@ +from __future__ import print_function, division, absolute_import +from fontTools.misc.py23 import * +from .otBase import BaseTTXConverter + + +class table_T_S_I_C_(BaseTTXConverter): + pass diff --git a/Lib/fontTools/ttLib/tables/otConverters.py b/Lib/fontTools/ttLib/tables/otConverters.py index ac6594556..57a45c76c 100644 --- a/Lib/fontTools/ttLib/tables/otConverters.py +++ b/Lib/fontTools/ttLib/tables/otConverters.py @@ -130,7 +130,7 @@ class BaseConverter(object): self.tableClass = tableClass self.isCount = name.endswith("Count") or name in ['DesignAxisRecordSize', 'ValueRecordSize'] self.isLookupType = name.endswith("LookupType") or name == "MorphType" - self.isPropagated = name in ["ClassCount", "Class2Count", "FeatureTag", "SettingsCount", "VarRegionCount", "MappingCount", "RegionAxisCount", 'DesignAxisCount', 'DesignAxisRecordSize', 'AxisValueCount', 'ValueRecordSize'] + self.isPropagated = name in ["ClassCount", "Class2Count", "FeatureTag", "SettingsCount", "VarRegionCount", "MappingCount", "RegionAxisCount", 'DesignAxisCount', 'DesignAxisRecordSize', 'AxisValueCount', 'ValueRecordSize', 'AxisCount'] 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 a0d0552c6..75f020e46 100755 --- a/Lib/fontTools/ttLib/tables/otData.py +++ b/Lib/fontTools/ttLib/tables/otData.py @@ -1513,4 +1513,31 @@ otData = [ ('int16', 'Bottom', None, None, 'Control point index for the bottom-side optical edge, or -1 if this glyph has none.'), ]), + # + # TSIC + # + ('TSIC', [ + ('Version', 'Version', None, None, 'Version of table initially set to 0x00010000.'), + ('uint16', 'Flags', None, None, 'TSIC flags - set to 0'), + ('uint16', 'AxisCount', None, None, 'Axis count from fvar'), + ('uint16', 'RecordCount', None, None, 'TSIC record count'), + ('uint16', 'Reserved', None, None, 'Set to 0'), + ('Tag', 'AxisArray', 'AxisCount', 0, 'Array of axis tags in fvar order'), + ('LocationRecord', 'RecordLocations', 'RecordCount', 0, 'Location in variation space of TSIC record'), + ('TSICRecord', 'Record', 'RecordCount', 0, 'Array of TSIC records'), + ]), + + ('LocationRecord', [ + ('F2Dot14', 'Axis', 'AxisCount', 0, 'Axis record'), + ]), + + ('TSICRecord', [ + ('uint16', 'Flags', None, None, 'Record flags - set to 0'), + ('uint16', 'NumCVTEntries', None, None, 'Number of CVT number value pairs'), + ('uint16', 'NameLength', None, None, 'Length of optional user record name'), + ('uint16', 'NameArray', 'NameLength', 0, 'Unicode 16 name'), + ('uint16', 'CVTArray', 'NumCVTEntries', 0, 'CVT number array'), + ('int16', 'CVTValueArray', 'NumCVTEntries', 0, 'CVT value'), + ]), + ]