Closed jfree closed 3 years ago
A workaround is to provide an alternate mapping that includes the single quotes around the problematic font name:
SVGGraphics2D g2 = new SVGGraphics2D(...);
((StandardFontMapper)g2.getFontMapper()).put("My Font Name", "'My Font Name'");
I've committed the fix for inclusion in version 5.0. Thanks for the StandardFontMapper suggestion - I've added the single quotes in this part of the code (plus refactored to use Function<String, String> instead of the custom FontMapper interface).
Reported in the forum at jfree.org : http://www.jfree.org/forum/viewtopic.php?f=32&t=120857