Merge pull request #3 from anthrotype/round-int
don't truncate floats but round them before casting them to ints
This commit is contained in:
commit
815c435fc9
@ -136,7 +136,7 @@ def as_quadratic(segment, points):
|
||||
return segment.as_quadratic(points)
|
||||
except AttributeError:
|
||||
return RSegment(
|
||||
'qcurve', [[int(i) for i in p] for p in points], segment.smooth)
|
||||
'qcurve', [[int(round(i)) for i in p] for p in points], segment.smooth)
|
||||
|
||||
|
||||
class FontCollection:
|
||||
|
Loading…
x
Reference in New Issue
Block a user