Skip to content

Commit

Permalink
svgPathPen: forgot to replace remaining str() with self._ntos()
Browse files Browse the repository at this point in the history
H and V commands were not passed through the custom number-formatting callable.
  • Loading branch information
anthrotype committed Dec 19, 2021
1 parent a80890b commit 9f38d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontTools/pens/svgPathPen.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def _lineTo(self, pt):
# vertical line
elif x == self._lastX:
cmd = "V"
pts = str(y)
pts = self._ntos(y)
# horizontal line
elif y == self._lastY:
cmd = "H"
pts = str(x)
pts = self._ntos(x)
# previous was a moveto
elif self._lastCommand == "M":
cmd = None
Expand Down

0 comments on commit 9f38d4d

Please sign in to comment.