gvar: log the glyph name if any exception is caught when decompiling deltas
This commit is contained in:
parent
da6fe5f0e3
commit
aef41419f2
@ -107,8 +107,15 @@ class table__g_v_a_r(DefaultTable.DefaultTable):
|
|||||||
glyph = ttFont["glyf"][glyphName]
|
glyph = ttFont["glyf"][glyphName]
|
||||||
numPointsInGlyph = self.getNumPoints_(glyph)
|
numPointsInGlyph = self.getNumPoints_(glyph)
|
||||||
gvarData = data[offsetToData + offsets[i] : offsetToData + offsets[i + 1]]
|
gvarData = data[offsetToData + offsets[i] : offsetToData + offsets[i + 1]]
|
||||||
self.variations[glyphName] = decompileGlyph_(
|
try:
|
||||||
numPointsInGlyph, sharedCoords, axisTags, gvarData)
|
self.variations[glyphName] = decompileGlyph_(
|
||||||
|
numPointsInGlyph, sharedCoords, axisTags, gvarData)
|
||||||
|
except Exception:
|
||||||
|
log.error(
|
||||||
|
"Failed to decompile deltas for glyph '%s' (%d points)",
|
||||||
|
glyphName, numPointsInGlyph,
|
||||||
|
)
|
||||||
|
raise
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decompileOffsets_(data, tableFormat, glyphCount):
|
def decompileOffsets_(data, tableFormat, glyphCount):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user