-
Notifications
You must be signed in to change notification settings - Fork 75
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 width issue #2566
Comments
It seems in #2567 that this font can trick QFontDialog into thinking it's bold while it's not, and this could be also the cause of a miscalculation of the glyph width. |
I'll check. Before the accident I was using the same font, and I have another kvirc setup with this font (different version though), which also works fine. |
It would be nice to check if the value of fontIrcView is the same in the different configs, and / or how the new version handles the old config |
Changing font didn't fix it, same for changing style |
This happens even on a brand new config, when running |
I ran git bisect, and the regression happened in 2829217 Looks like @pragmaware tried to fix this in 148d8d9 but for me it made the effect even stronger |
I guess 2829217#diff-457dd4d023c2f347f0f23f4d9413c1d71ff648494e2d8cefdfd01bd007c88692L412 it what is causing the issue (similar changes apply to input and topic widgets aswell. We used some tricks before to ensure correct font width calculation, disabling kerning and the QFont::ForceIntegerMetrics style, that doesn't exist anymore in Qt6. Right now I'm not able to reproduce this, but I'll try harder. |
I tried to replace horizontalAdvance with width, but it's still broken. Would need to debug further |
A possible fix is here: master...ctrlaltca:KVIrc:fix_surrogate |
Can you please test these two different attempts at fixing the issue? Attempt1: Attempt at fixing font width size by enable full font hinting, aka forcing glyphs to be aligned to pixels in order to disable subpixel positioning (source: https://www.mail-archive.com/development@qt-project.org/msg43330.html) Attempt2: Attempt at fixing font width problem by making the selection code use floats, too |
Attempt1 fixes it, Attempt2 does not. |
Hello, DarthGandalf told me I should report this here, so here it it. Here is a video: https://youtu.be/jm1rdqxJAjw And some more info: KVIrc 5.2.6 'Quasar' Information du système: Information de compilation: |
I saw the video, is that cropped part of window from KVIrc? is that a channel, a webview or what? I can't make sense of its contents. Also, can I ask you what font is that window using? Thank you |
Hello ctrlaltca, it's the "status" window, but the same thing happens in all windows (channel, query, partlyline). I can do another video with the whole screen if you want, but it's just the same. As for the font, it was verdana, but I've tried with like 6 or 7 of them and the same thing happens, even when I change their sizes. Thanks |
So, I've tested both Linux and Windows with the verdana font but I'm not been able to reproduce the issue. |
Hello ctrlaltca, |
Gentoo Linux amd64, version 4a51c0e
Qt 5.15.11
When the last time I accidentally deleted my config by trying test version of kvirc (yes, I need better backups) something happened with calculation of font width. See the video: https://youtu.be/tvh8nV_K2vM
This actually makes it hard to select a substring, because when I click it the string visually moves, and I end up selecting a different substring than I intended.
The text was updated successfully, but these errors were encountered: