otlLib: sort names after building STAT, set AxisValueCount=0
This commit is contained in:
parent
bc03f09322
commit
41ff9511cc
@ -2781,6 +2781,7 @@ def buildStatTable(
|
||||
locations, axes, nameTable, windowsNames=windowsNames, macNames=macNames
|
||||
)
|
||||
axisValues = multiAxisValues + axisValues
|
||||
nameTable.names.sort()
|
||||
|
||||
# Store AxisRecords
|
||||
axisRecordArray = ot.AxisRecordArray()
|
||||
@ -2790,6 +2791,8 @@ def buildStatTable(
|
||||
statTable.DesignAxisRecord = axisRecordArray
|
||||
statTable.DesignAxisCount = len(axisRecords)
|
||||
|
||||
statTable.AxisValueCount = 0
|
||||
statTable.AxisValueArray = None
|
||||
if axisValues:
|
||||
# Store AxisValueRecords
|
||||
axisValueArray = ot.AxisValueArray()
|
||||
|
@ -8,9 +8,6 @@
|
||||
<namerecord nameID="256" platformID="3" platEncID="1" langID="0x409">
|
||||
Roman
|
||||
</namerecord>
|
||||
<namerecord nameID="256" platformID="3" platEncID="1" langID="0x411">
|
||||
ローマン
|
||||
</namerecord>
|
||||
<namerecord nameID="257" platformID="3" platEncID="1" langID="0x409">
|
||||
Optical Size
|
||||
</namerecord>
|
||||
@ -68,6 +65,9 @@
|
||||
<namerecord nameID="275" platformID="3" platEncID="1" langID="0x409">
|
||||
Caption
|
||||
</namerecord>
|
||||
<namerecord nameID="256" platformID="3" platEncID="1" langID="0x411">
|
||||
ローマン
|
||||
</namerecord>
|
||||
</name>
|
||||
|
||||
<STAT>
|
||||
|
Loading…
x
Reference in New Issue
Block a user