Merge pull request #2286 from fonttools/mutator-round-lsb

[mutator] Round lsb for CFF2 fonts as well
This commit is contained in:
Khaled Hosny 2021-05-03 01:20:01 +02:00 committed by GitHub
commit 8caf2f0dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ def interpolate_cff2_metrics(varfont, topDict, glyphOrder, loc):
# Happens with non-marking glyphs # Happens with non-marking glyphs
lsb_delta = 0 lsb_delta = 0
else: else:
lsb = boundsPen.bounds[0] lsb = otRound(boundsPen.bounds[0])
lsb_delta = entry[1] - lsb lsb_delta = entry[1] - lsb
if lsb_delta or width_delta: if lsb_delta or width_delta: