Open WillianBR opened 1 year ago
I also noticed you are using a Apple computer with Mac OSX. So you hard coded the font file path.
/Library/Fonts/Arial Bold.ttf
/Library/Fonts/Arial.ttf
I suggest you get a free truetype font and include it into the repository. Than your code can localy load it and use!
Otherwise your code will compile on Linux and Windows, but it'll runtime panic!
panic: open /Library/Fonts/Arial.ttf: The system cannot find the path specified.
this has been fixed in "my" fork of gg
:
@fogleman,
I have noticed many examples from "fogleman/gg" save it output image file to "out.png".
That can be tricky!
I would like to suggest two additional lines, who it'll save the PNG with the same name of executable. Changing the extension only!
I have the habit of build all the samples and test it one at the time. But this litlte folks overwrite the old output file.