[varLib.mutator] Drop all variable tables
This commit is contained in:
parent
7f792cbaf8
commit
af3df891b2
@ -48,8 +48,8 @@ def main(args=None):
|
|||||||
coordinates += GlyphCoordinates(var.coordinates) * scalar
|
coordinates += GlyphCoordinates(var.coordinates) * scalar
|
||||||
_SetCoordinates(varfont, glyphname, coordinates)
|
_SetCoordinates(varfont, glyphname, coordinates)
|
||||||
|
|
||||||
print("Removing GX tables")
|
print("Removing variable tables")
|
||||||
for tag in ('fvar','avar','gvar'):
|
for tag in ('avar','cvar','fvar','gvar','HVAR','MVAR','VVAR','STAT'):
|
||||||
if tag in varfont:
|
if tag in varfont:
|
||||||
del varfont[tag]
|
del varfont[tag]
|
||||||
|
|
||||||
|
@ -665,92 +665,4 @@
|
|||||||
</VarStore>
|
</VarStore>
|
||||||
</GDEF>
|
</GDEF>
|
||||||
|
|
||||||
<HVAR>
|
|
||||||
<Version value="0x00010000"/>
|
|
||||||
<VarStore Format="1">
|
|
||||||
<Format value="1"/>
|
|
||||||
<VarRegionList>
|
|
||||||
<!-- RegionAxisCount=2 -->
|
|
||||||
<!-- RegionCount=5 -->
|
|
||||||
<Region index="0">
|
|
||||||
<VarRegionAxis index="0">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="0.0"/>
|
|
||||||
<EndCoord value="0.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
<VarRegionAxis index="1">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="1.0"/>
|
|
||||||
<EndCoord value="1.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
</Region>
|
|
||||||
<Region index="1">
|
|
||||||
<VarRegionAxis index="0">
|
|
||||||
<StartCoord value="-1.0"/>
|
|
||||||
<PeakCoord value="-1.0"/>
|
|
||||||
<EndCoord value="0.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
<VarRegionAxis index="1">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="0.0"/>
|
|
||||||
<EndCoord value="0.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
</Region>
|
|
||||||
<Region index="2">
|
|
||||||
<VarRegionAxis index="0">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="1.0"/>
|
|
||||||
<EndCoord value="1.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
<VarRegionAxis index="1">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="0.0"/>
|
|
||||||
<EndCoord value="0.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
</Region>
|
|
||||||
<Region index="3">
|
|
||||||
<VarRegionAxis index="0">
|
|
||||||
<StartCoord value="-1.0"/>
|
|
||||||
<PeakCoord value="-1.0"/>
|
|
||||||
<EndCoord value="0.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
<VarRegionAxis index="1">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="1.0"/>
|
|
||||||
<EndCoord value="1.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
</Region>
|
|
||||||
<Region index="4">
|
|
||||||
<VarRegionAxis index="0">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="1.0"/>
|
|
||||||
<EndCoord value="1.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
<VarRegionAxis index="1">
|
|
||||||
<StartCoord value="0.0"/>
|
|
||||||
<PeakCoord value="1.0"/>
|
|
||||||
<EndCoord value="1.0"/>
|
|
||||||
</VarRegionAxis>
|
|
||||||
</Region>
|
|
||||||
</VarRegionList>
|
|
||||||
<!-- VarDataCount=1 -->
|
|
||||||
<VarData index="0">
|
|
||||||
<!-- ItemCount=6 -->
|
|
||||||
<NumShorts value="0"/>
|
|
||||||
<!-- VarRegionCount=5 -->
|
|
||||||
<VarRegionIndex index="0" value="0"/>
|
|
||||||
<VarRegionIndex index="1" value="1"/>
|
|
||||||
<VarRegionIndex index="2" value="2"/>
|
|
||||||
<VarRegionIndex index="3" value="3"/>
|
|
||||||
<VarRegionIndex index="4" value="4"/>
|
|
||||||
<Item index="0" value="[0, 0, 0, 0, 0]"/>
|
|
||||||
<Item index="1" value="[0, 14, -28, 0, 0]"/>
|
|
||||||
<Item index="2" value="[0, -10, 17, 0, 0]"/>
|
|
||||||
<Item index="3" value="[0, -3, 32, 0, 0]"/>
|
|
||||||
<Item index="4" value="[0, -7, 63, 0, 0]"/>
|
|
||||||
<Item index="5" value="[0, -7, 63, 0, 0]"/>
|
|
||||||
</VarData>
|
|
||||||
</VarStore>
|
|
||||||
</HVAR>
|
|
||||||
|
|
||||||
</ttFont>
|
</ttFont>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user