instancer: support partial instancing VVAR table as well

for TrueType VF only yet
This commit is contained in:
Cosimo Lupo 2019-04-20 13:06:13 +01:00
parent 91089b7a1b
commit 1e6f8bc39b
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F

View File

@ -83,8 +83,8 @@ def instantiateGvarGlyph(varfont, glyphname, location, optimize=True):
if defaultDeltas:
coordinates += GlyphCoordinates(defaultDeltas)
# this will also set the hmtx advance widths and sidebearings from
# the fourth-last and third-last phantom points (and glyph.xMin)
# this will also set the hmtx/vmtx advance widths and sidebearings from
# the four phantom points and glyph bounding boxes
glyf.setCoordinates(glyphname, coordinates, varfont)
if not tupleVarStore:
@ -513,9 +513,8 @@ def instantiateVariableFont(varfont, axis_limits, inplace=False, optimize=True):
if "HVAR" in varfont:
instantiateHVAR(varfont, axis_limits)
# TODO(anthrotype) Uncomment this once we apply gvar deltas to vmtx
# if "VVAR" in varfont:
# instantiateVVAR(varfont, axis_limits)
if "VVAR" in varfont:
instantiateVVAR(varfont, axis_limits)
instantiateOTL(varfont, axis_limits)