Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font family name issue #27

Closed
jfree opened this issue Jul 1, 2020 · 2 comments
Closed

Font family name issue #27

jfree opened this issue Jul 1, 2020 · 2 comments
Assignees

Comments

@jfree
Copy link
Owner

jfree commented Jul 1, 2020

Reported in the forum at jfree.org : http://www.jfree.org/forum/viewtopic.php?f=32&t=120857

@atoone
Copy link

atoone commented Feb 18, 2021

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'");

jfree added a commit that referenced this issue May 30, 2021
@jfree jfree self-assigned this May 30, 2021
@jfree
Copy link
Owner Author

jfree commented May 30, 2021

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).

@jfree jfree closed this as completed May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants