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
I'm on Manjaro Linux and I think I don't have Arial or Helvetica.
Running this example:
importpero# init sizewidth=200height=200# init canvascanvas=pero.svg.SVGCanvas(width=width, height=height)
# draw graphicscanvas.line_color="b"canvas.fill_color="w"canvas.fill()
canvas.draw_circle(100, 100, 75)
# save to filewithopen('test.svg', 'w', encoding='utf-8') asf:
f.write(canvas.get_xml())
I get the following error:
Traceback (most recent call last):
File "/home/villares/GitHub/sketch-a-day/2022/sketch_2022_12_12/sketch_2022_12_12.py", line 9, in <module>
canvas = pero.svg.SVGCanvas(width=width, height=height)
File "/home/villares/.local/lib/python3.10/site-packages/pero/backends/svg/canvas.py", line 56, in __init__
self._update_text()
File "/home/villares/.local/lib/python3.10/site-packages/pero/backends/svg/canvas.py", line 723, in _update_text
font = self.get_font()
File "/home/villares/.local/lib/python3.10/site-packages/pero/drawing/canvas.py", line 366, in get_font
raise ValueError(message)
ValueError: Cannot initialize the font! -> Arial, arial, Arial, Helvetica
The text was updated successfully, but these errors were encountered:
I'm on Manjaro Linux and I think I don't have Arial or Helvetica.
Running this example:
I get the following error:
The text was updated successfully, but these errors were encountered: