[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,
|
def compileTupleVariationStore(variations, pointCount,
|
||||||
axisTags, sharedTupleIndices,
|
axisTags, sharedTupleIndices,
|
||||||
useSharedPoints=True):
|
useSharedPoints=True):
|
||||||
|
# pointCount is actually unused. Keeping for API compat.
|
||||||
|
del pointCount
|
||||||
newVariations = []
|
newVariations = []
|
||||||
pointDatas = []
|
pointDatas = []
|
||||||
# Compile all points and figure out sharing if desired
|
# Compile all points and figure out sharing if desired
|
||||||
|
@ -99,9 +99,8 @@ class table__g_v_a_r(DefaultTable.DefaultTable):
|
|||||||
if not variations:
|
if not variations:
|
||||||
result.append(b"")
|
result.append(b"")
|
||||||
continue
|
continue
|
||||||
glyph = glyf[glyphName]
|
pointCountUnused = 0 # pointCount is actually unused by compileGlyph
|
||||||
pointCount = self.getNumPoints_(glyph)
|
result.append(compileGlyph_(variations, pointCountUnused,
|
||||||
result.append(compileGlyph_(variations, pointCount,
|
|
||||||
axisTags, sharedCoordIndices))
|
axisTags, sharedCoordIndices))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user