Hi Tomás,
+plotinum-discuss
I'm glad that you found Plotinum to be helpful.
Plotinum includes some data files, specifically it includes some true type fonts (see plotinum/vg/fonts). When you "install" Plotinum with go get, these files are put in a place where Plotinum can find them, since they are checked out with the source repository into your go path. If you want to distribute a binary that imports Plotinum, however, then you need to distribute these files yourself, and you need to tell Plotinum where they are by either setting vg.FontDirs before using Plotinum or by setting the environment variable VGFONTPATH.
Hope this helps.
Best,
Ethan
Hello Ethan,
First of all thank you for building Plotinum. It made it really easy to add ploting capabilities to Vegeta.
Some users of my tool are, however, running into issues with runtime dependencies on fonts with SVG rendering.
You can have a look at the error message here: https://github.com/tsenart/vegeta/issues/12#issuecomment-23582446
Would be so kind as to let me know what is the best way to move forward in fixing this?
Thank you,
Tomás
This is a hard problem (I think that it is described in the Plotinum issue referenced in the github issue that you linked in your original email), and I have no good solution for it. Basically, Plotinum needs specific fonts, not just any fonts. Unfortunately, the fonts that it uses are under the GPL, so they can't be embedded directly into the source either, they must be distributed separately.
Ethan