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 issue cursor positioning issues #1

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

marcusbritanicus
Copy link

Qt6 has removed QFont::ForceIntegerMetrics from QFont. This causes incorrect positioning of the cursor in the terminal, especially visible when the number of characters is large (typically > 30).

As an alternative, we can use QFont::PreferFullHinting to ensure all the letters are aligned properly.

Another of their fixes is for "intense colors", which is also included in this PR.

PS: I have taken this from Konsole's TerminalFonts.cpp file.

@doug1234
Copy link
Owner

I figured it was related to QFont::ForceIntegerMetrics but I didn't know what to do to fix it. Thank you for the help!!

@doug1234 doug1234 merged commit 7052dc2 into doug1234:Qt6Update Feb 26, 2024
@marcusbritanicus
Copy link
Author

Thank you. It was my two bits to help develop something I use on a daily basis...

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

Successfully merging this pull request may close these issues.

2 participants