Skip to content

Commit

Permalink
Merge pull request #13 from googlefonts/round
Browse files Browse the repository at this point in the history
Round to 3 decimal places
  • Loading branch information
EsoFromTheEast authored Jul 17, 2023
2 parents bf64078 + 27a5d4b commit 16f0814
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vf2symbols/write_symbol_from_svgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/regular_sml_baseline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 16f0814

Please sign in to comment.