From 9f38d4de12dd871d1f2e916611bd3c1607757371 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sun, 19 Dec 2021 10:35:27 +0000 Subject: [PATCH] svgPathPen: forgot to replace remaining str() with self._ntos() H and V commands were not passed through the custom number-formatting callable. --- Lib/fontTools/pens/svgPathPen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/pens/svgPathPen.py b/Lib/fontTools/pens/svgPathPen.py index ae82b56b2..e92737e38 100644 --- a/Lib/fontTools/pens/svgPathPen.py +++ b/Lib/fontTools/pens/svgPathPen.py @@ -109,11 +109,11 @@ class SVGPathPen(BasePen): # 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