[ttGlyphSet-cff] Remove rounding

This commit is contained in:
Behdad Esfahbod 2022-08-27 12:20:15 -06:00
parent b3d6868516
commit bcd637bd1a
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ CFF dictionary data and Type1/Type2 CharStrings.
from fontTools.misc.fixedTools import (
fixedToFloat, floatToFixed, floatToFixedToStr, strToFixedToFloat,
)
from fontTools.misc.roundTools import otRound
from fontTools.misc.textTools import bytechr, byteord, bytesjoin, strjoin
from fontTools.pens.boundsPen import BoundsPen
import struct
@ -427,7 +426,7 @@ class SimpleT2Decompiler(object):
next_ti = tuplei + self.numRegions
deltas = self.operandStack[tuplei:next_ti]
delta = self.blender(self.vsIndex, deltas)
self.operandStack[argi] += otRound(delta)
self.operandStack[argi] += delta
tuplei = next_ti
argi += 1
self.operandStack[end_args:] = []

View File

@ -212,7 +212,7 @@ class _TTVarGlyphCFF(_TTVarGlyph):
varidx = hvar.AdvWidthMap.mapping[self._glyphName]
vsInstancer = VarStoreInstancer(hvar.VarStore, self._ttFont['fvar'].axes, self._location)
delta = vsInstancer[varidx]
self.width += otRound(delta)
self.width += delta
class _TTVarGlyphGlyf(_TTVarGlyph):