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

Fix console rounding. #20

Merged
merged 5 commits into from
Nov 15, 2019
Merged

Conversation

sampottinger
Copy link
Collaborator

Responding to processing#19, there appears to be an issue with calculating the bounds of text inside JTextPane within EditorConsole for specific font family and size combinations. This may be related to https://bugs.openjdk.java.net/browse/JDK-8158370 or https://bugs.openjdk.java.net/browse/JDK-8156217 but resolves when changing Editor.LEFT_GUTTER from 44 to basically anything else.

sampottinger and others added 5 commits October 20, 2019 16:13
[Fork] Fix JDK naming and cleanup in ant build
[Fork] Refactor within PdePreprocessor to allow for override of edits.
Responding to benfry#19, there appears to be an issue with calculating the bounds of text inside JTextPane within EditorConsole for specific font family and size combinations. This may be related to https://bugs.openjdk.java.net/browse/JDK-8158370 or https://bugs.openjdk.java.net/browse/JDK-8156217 but resolves when changing Editor.LEFT_GUTTER from 45 to basically anything else.
Correcting an earlier comment in the git log, 45 seems to work for LEFT_GUTTER but not 44.
@benfry
Copy link
Owner

benfry commented Nov 15, 2019

Ok, thanks.

@benfry benfry closed this Nov 15, 2019
@benfry benfry merged commit 2a590c3 into benfry:master Nov 15, 2019
sampottinger added a commit that referenced this pull request Jan 20, 2020
[Fork] Fix font size calculation issue in the editor console.
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants