diff --git a/src/vf2symbols/write_symbol_from_svgs.py b/src/vf2symbols/write_symbol_from_svgs.py index 5032681..1ce1c9c 100644 --- a/src/vf2symbols/write_symbol_from_svgs.py +++ b/src/vf2symbols/write_symbol_from_svgs.py @@ -65,7 +65,7 @@ def main(argv): symbol.write_icon( layer_name, svgLib.SVGPath.fromstring(pico.tostring()), - SVGPathPen(None), + SVGPathPen(None, ntos=lambda pt: f'{pt:.3f}'.rstrip('0').rstrip('.')), rect, ) symbol.drop_empty_icons() diff --git a/tests/regular_sml_baseline.svg b/tests/regular_sml_baseline.svg index 7fe3c33..4b0e01e 100644 --- a/tests/regular_sml_baseline.svg +++ b/tests/regular_sml_baseline.svg @@ -9,4 +9,4 @@ text.lanchor { text-anchor: start; } - Weight/Scale VariationsUltralightThinLightRegularMediumSemiboldBoldHeavyBlackTemplate v.1.0SmallMediumLarge \ No newline at end of file + Weight/Scale VariationsUltralightThinLightRegularMediumSemiboldBoldHeavyBlackTemplate v.1.0SmallMediumLarge \ No newline at end of file diff --git a/tests/sample_symbol_baseline.svg b/tests/sample_symbol_baseline.svg index 1905819..cbeac0f 100644 --- a/tests/sample_symbol_baseline.svg +++ b/tests/sample_symbol_baseline.svg @@ -9,4 +9,4 @@ text.lanchor { text-anchor: start; } - Weight/Scale VariationsUltralightThinLightRegularMediumSemiboldBoldHeavyBlackTemplate v.1.0SmallMediumLarge \ No newline at end of file + Weight/Scale VariationsUltralightThinLightRegularMediumSemiboldBoldHeavyBlackTemplate v.1.0SmallMediumLarge \ No newline at end of file