Add AxisValueFormat4 for STAT table v1.2 from OT v1.8.2.

This commit is contained in:
Rob McKaughan 2017-07-24 16:12:31 -07:00
parent 03064b60c4
commit b8e2d90cda

16
Lib/fontTools/ttLib/tables/otData.py Normal file → Executable file
View File

@ -844,7 +844,7 @@ otData = [
# STAT # STAT
# #
('STAT', [ ('STAT', [
('Version', 'Version', None, None, 'Version of the table-initially set to 0x00010000, currently 0x00010001.'), ('Version', 'Version', None, None, 'Version of the table-initially set to 0x00010000, currently 0x00010002.'),
('uint16', 'DesignAxisRecordSize', None, None, 'Size in bytes of each design axis record'), ('uint16', 'DesignAxisRecordSize', None, None, 'Size in bytes of each design axis record'),
('uint16', 'DesignAxisCount', None, None, 'Number of design axis records'), ('uint16', 'DesignAxisCount', None, None, 'Number of design axis records'),
('LOffsetTo(AxisRecordArray)', 'DesignAxisRecord', None, None, 'Offset in bytes from the beginning of the STAT table to the start of the design axes array'), ('LOffsetTo(AxisRecordArray)', 'DesignAxisRecord', None, None, 'Offset in bytes from the beginning of the STAT table to the start of the design axes array'),
@ -895,6 +895,20 @@ otData = [
('Fixed', 'LinkedValue', None, None, ''), ('Fixed', 'LinkedValue', None, None, ''),
]), ]),
('AxisValueFormat4', [
('uint16', 'Format', None, None, 'Format, = 4'),
('uint16', 'AxisCount', None, None, 'The total number of axes contributing to this axis-values combination.'),
('uint16', 'Flags', None, None, 'Flags.'),
('NameID', 'ValueNameID', None, None, ''),
('struct', 'AxisValueRecord', 'AxisCount', 0, 'Array of AxisValue records that provide the combination of axis values, one for each contributing axis. '),
]),
('AxisValueRecord', [
('uint16', 'AxisIndex', None, None, 'Index into the axis record array identifying the axis of design variation to which the axis value record applies.'),
('Fixed', 'Value', None, None, 'A numeric value for this attribute value.'),
]),
# #
# Variation fonts # Variation fonts
# #