[varLib] Round advance width and LSB to integers
This commit is contained in:
parent
e01c52244d
commit
7bf853ed2e
@ -154,8 +154,8 @@ def _SetCoordinates(font, glyphName, coord):
|
||||
|
||||
glyph.recalcBounds(glyf)
|
||||
|
||||
horizontalAdvanceWidth = rightSideX - leftSideX
|
||||
leftSideBearing = glyph.xMin - leftSideX
|
||||
horizontalAdvanceWidth = round(rightSideX - leftSideX)
|
||||
leftSideBearing = round(glyph.xMin - leftSideX)
|
||||
# XXX Handle vertical
|
||||
font["hmtx"].metrics[glyphName] = horizontalAdvanceWidth, leftSideBearing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user