[gvar] Don't expand glyph for unused pointCount
Keep it in the API though.
This commit is contained in:
parent
96de954d29
commit
6aca5be9b7
@ -632,6 +632,8 @@ def compileSharedTuples(axisTags, variations,
|
||||
def compileTupleVariationStore(variations, pointCount,
|
||||
axisTags, sharedTupleIndices,
|
||||
useSharedPoints=True):
|
||||
# pointCount is actually unused. Keeping for API compat.
|
||||
del pointCount
|
||||
newVariations = []
|
||||
pointDatas = []
|
||||
# Compile all points and figure out sharing if desired
|
||||
|
@ -99,9 +99,8 @@ class table__g_v_a_r(DefaultTable.DefaultTable):
|
||||
if not variations:
|
||||
result.append(b"")
|
||||
continue
|
||||
glyph = glyf[glyphName]
|
||||
pointCount = self.getNumPoints_(glyph)
|
||||
result.append(compileGlyph_(variations, pointCount,
|
||||
pointCountUnused = 0 # pointCount is actually unused by compileGlyph
|
||||
result.append(compileGlyph_(variations, pointCountUnused,
|
||||
axisTags, sharedCoordIndices))
|
||||
return result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user