equitablegrowth / Playfair

Web application for creating publication ready charts and graphs
http://www.austinclemens.com/Playfair/playfair.html
56 stars 6 forks source link

Sometimes save as png outputs a graph with no text #260

Open austinclemens opened 7 years ago

austinclemens commented 7 years ago

The only graphs I know of where this happens reliably for is jobs day graphs. Nothing about the SVG on these graphs look weird. They were recently re-created for Playfair 2.3 so it's not embedded fonts. Unclear what if anything is different about these graphs from others.

austinclemens commented 7 years ago

This is definitely about font loading. You can see this by having PT Sans and anything else on the same graph - the pt sans will work fine because it is embedded.

austinclemens commented 7 years ago

I have an issue in on the savesvgaspng board to see if they have any ideas. Until then this is an open issue - for fonts besides Lato and PTSans, you have to save a graph to PNG twice. It will render correctly on the second save.