Skip to content

Instantly share code, notes, and snippets.

View Thomasb81's full-sized avatar

Thomasb81

  • France
  • 01:17 (UTC +02:00)
View GitHub Profile
@p3t3r67x0
p3t3r67x0 / convert_truetype.md
Last active November 26, 2023 16:54
Create a svg from truetype font with freetype and svgpathtools in python

Create a svg from truetype font in python

I am trying to create a svg file from a truetype font with freetype-py and svgpathtools. I have a working python code which generates the svg file but unfortunately there are some corners and edges where instead should be smooth curves. Here in this example I try to render an special char which does not look good at all.

Question

What do I need to change in order to get curve symbols redered correctly?

Prerequisites