Merge pull request #1015 from robmck-ms/master

Add AxisValueFormat4 for STAT table v1.2  from OT v1.8.2.
This commit is contained in:
Cosimo Lupo 2017-07-25 20:39:00 +01:00 committed by GitHub
commit 212ac26147

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

@ -844,7 +844,7 @@ otData = [
# 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', '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'),
@ -895,6 +895,20 @@ otData = [
('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
#