[ttVarGlyphSet-CFF] Handle font without advance variation
This commit is contained in:
parent
a949380b4a
commit
f5a1d0ba10
@ -205,6 +205,7 @@ class _TTVarGlyphCFF(_TTVarGlyph):
|
||||
self._glyph.draw(pen, blender)
|
||||
|
||||
self.width = self._ttFont['hmtx'][self._glyphName][0]
|
||||
if 'HVAR' in self._ttFont:
|
||||
hvar = self._ttFont['HVAR'].table
|
||||
varidx = self._ttFont.getGlyphID(self._glyphName)
|
||||
if hvar.AdvWidthMap is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user