Merge pull request #3317 from fonttools/instantiate-avgcharwidth
Recalc avgcharwidth after instancing
This commit is contained in:
commit
74da89beeb
@ -1287,6 +1287,9 @@ def instantiateVariableFont(
|
||||
ignoreErrors=(overlap == OverlapMode.REMOVE_AND_IGNORE_ERRORS),
|
||||
)
|
||||
|
||||
if "OS/2" in varfont:
|
||||
varfont["OS/2"].recalcAvgCharWidth(varfont)
|
||||
|
||||
varLib.set_default_weight_width_slant(
|
||||
varfont, location=axisLimits.defaultLocation()
|
||||
)
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="502"/>
|
||||
<usWeightClass value="100"/>
|
||||
<usWidthClass value="5"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="383"/>
|
||||
<usWeightClass value="100"/>
|
||||
<usWidthClass value="2"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="543"/>
|
||||
<usWeightClass value="400"/>
|
||||
<usWidthClass value="5"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="428"/>
|
||||
<usWeightClass value="400"/>
|
||||
<usWidthClass value="2"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="609"/>
|
||||
<usWeightClass value="900"/>
|
||||
<usWidthClass value="5"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
@ -74,7 +74,7 @@
|
||||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="577"/>
|
||||
<xAvgCharWidth value="506"/>
|
||||
<usWeightClass value="900"/>
|
||||
<usWidthClass value="2"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user