-
-
Notifications
You must be signed in to change notification settings - Fork 70
textSize() leads to some symbols not being displayed correctly anymore #303
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
Comments
Created by: benfry Looks like the same issue as processing/processing#4956. Since that repo is no longer being updated, here's the status of the issue: There are likely two things going on here (This is all inside
I've already fixed the second item in 3.x, but it's not clear why The workaround is to specify an actual font, rather than relying on the default font. |
Created by: benfry Ah… I've at least found the problem. The bug (sort of) is that the first line isn't actually using the default font from Processing, it's using Java's built-in font. The second line correctly uses the Processing default, which doesn't support all of the characters. So the workaround in your case would be to add this to the beginning of your sketch: PFont font = createFont("SansSerif", 12)
textFont(font); |
Created by: benfry Resolved for 4.0 beta 3. For this example, it's still necessary to use Also added a warning for the user to explain the situation in 154d44e |
Created by: github-actions[bot] This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs. |
Created by: hkiel
Description
textSize()
leads to some symbols not being displayed correctly anymore withtext()
Expected Behavior
Same symbols should be shown with scaled font
Current Behavior
glyph for unknown symbol is shown instead
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: