From 1e6f8bc39bde3ba16536354a1e9158ec52755ab0 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sat, 20 Apr 2019 13:06:13 +0100 Subject: [PATCH] instancer: support partial instancing VVAR table as well for TrueType VF only yet --- Lib/fontTools/varLib/instancer.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Lib/fontTools/varLib/instancer.py b/Lib/fontTools/varLib/instancer.py index 633c4341b..12c98a91f 100644 --- a/Lib/fontTools/varLib/instancer.py +++ b/Lib/fontTools/varLib/instancer.py @@ -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)