-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Not all font characters will display when painted with :graphics #222
Comments
Not sure what the solution would be here. Have you tried using a different TTF font? |
Well, the thing is, it works for paragprahs, but it doesn't work for Graphics2D. On the other hand, it works for Graphics2D for the second example. |
Setting the encoding might help, here's the function that attempts to resolve the font. |
The encoding is there, but it still doesn't affect anything. |
Unfortunately, not sure what to do here. I'm open to a PR if you do figure it out though. :) |
Oh, the same bug appears in the Quil (https://github.com/quil/quil) library. |
Might be an underlying issue in Java graphics implementation. Wonder if using SVG might be a workaround here. |
I am experiencing the same issue: The non-ASCII characters appear when drawn into the Graphics2D of my JPanel, but not in the Graphics2D of the PDF :graphics element. If it were a problem with Graphics2D itself, would it not fail in both instances? |
Not really sure what the difference between rendering to a JPanel vs the graphics element is unfortunately. |
Not all font characters of my native (Czech) language will display when painted with :graphics. But if I create a blank JFrame with Canvas it all works fine. I don't know what I have to set up to make it work...
The text was updated successfully, but these errors were encountered: