You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
So from the "using fonts" example i tried the embedded font. Changing the font-size doesn't effect the output.
importsvgwritedwg=svgwrite.Drawing('font_embedded.svg', (800, 200), debug=True)
# font data has to be downloaded to the local file systemdwg.embed_font(name="Indie Flower", filename='fonts/IndieFlower-Regular.ttf')
dwg.embed_stylesheet(""".flower14 { font-family: "Indie Flower"; font-size: 14;}""")
# This should work stand alone and embedded in a website!paragraph=dwg.add(dwg.g(class_="flower14", ))
paragraph.add(dwg.text("Font 'Indie Flower' embedded from local file system.", insert=(10, 40)))
dwg.save(pretty=True)
When i "override" the font-size with the style attribute it works
paragraph=dwg.add(dwg.g(class_="flower14", ))
paragraph.add(dwg.text("Font 'Indie Flower' embedded from local file system.", insert=(10, 40), style="font-size : 16"))