View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0036483||Packages||Widgetset||public||2019-12-27 00:59||2021-02-27 22:38|
|Reporter||void09||Assigned To||Zeljan Rikalo|
|Summary||0036483: Fonts in the qt IDE are broken with qt 5.14|
|Description||After upgrading my system to qt5 5.14, no matter what font I select in options I always get the same one, a mess that is barely readable.|
Charachters overlap or have extra space between them. Was working fine before with qt5 5.13. Running Lazarus-gtk2 worked fine.
|Steps To Reproduce||Run lazarus-qt on Linux with qt 5.14|
|Tags||No tags attached.|
|Fixed in Revision||62604|
||Please attach screenshoot of bad looking font. Is it IDE source editor only ?|
This is from a vm with identical os/qt versions, as I have switched to the gtk2 IDE until this is resolved.
Yes, the problem is only with the code editor. No matter what font I select there's only 2 possible "fonts" displayed. The one in the screenshot and another variety with bigger spacing between chars.
||Please write (or show) what exact font is setted up for IDE editor (and size)|
If it helps, I've run into this as well. Attached two screenshots, one of the messy editor view, the other showing the display options. I've been successfully using the Classic Console font for a long time.
The actual font selector dialog does render the chosen font correctly. It's only in the example font appearance view and the editor view that it looks wrong. It's as if Lazarus is able to fetch the font metrics from the selected font, but then uses glyphs from some fallback font, resulting in severe clipping.
I'm using qt 5.14.0 on Archlinux, which is related to Manjaro. I wonder if any other distro has this problem.
||I can confirm this bug with Qt5 5.14.1 on linux manjaro.|
||Info for me: any monospace fonts works fine in test project with TSynEdit (Qt5 5.14.1 - Manjaro 64bit), but cannot get beautifier to work :(|
||Please test and close if ok.|
||Tested the change against qt5.14.1; I can confirm it's fixed for me. Thank you!|
||Same issue existing with manjaro linux, qt 5.14.2, and Lazarus 2.0.8 and trunk 63319. Can you please take a look at it again ?|
Could be a packaging issue. The font broke for me again when I got the latest lazarus-qt5 2.0.8-2; I had to reapply the fixing commit manually to /lib/lazarus/lcl/interfaces/qt5/qtobjects.pas and rebuild the IDE. This made the font look fine again.
The fix hasn't been overwritten in the Lazarus SVN trunk, as far as I can see, so our packages must have come with an outdated copy of the file?
||I'm not sure that font patch is merged into fixes|
That patch never got into fixes. Links:
Patch (SVN 62604): https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/interfaces/qt5/qtobjects.pas?root=lazarus&r1=62604&r2=62603&pathrev=62604
Log of qtobject.pas in fixes_2_0: https://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/fixes_2_0/lcl/interfaces/qt5/qtobjects.pas?view=log&root=lazarus
As you see, the current revision in fixes_2_0 is 60182, which is older than 62604. Is there any chance to get this patch applied to the fixes branch and included in the next 2.0 release, as this is the stable branch most Linux distributions are on?
||Still not fixed in 2.0.10. Please try to fix it so we don't have to use -svn branch to get a usable Lazarus on linux|
It was fixed in trunk until now when I used it on manjaro Linux. Now a fresh install of Garuda linux, with fpcupdeluxe from trunk, and the font problem appears again. What's going on here ? Will this ever be fixed for good?
qt5-base 5.15.2-2 btw
Garuda linux latest iso, fpcupdeluxe compiled fpc+lazarus trunk, no bug: package list https://0bin.net/paste/lefYomb9#vZhnO+cKXf7uhzbU2VDGPUn2FL4s9GfOy3wkb5y7jJK
What desktop system your Garuda Linux has? They have many choices apparently.
LCL-QT5 works best on desktops made with QT5. I run KDE Plasma myself.
If it works with Manjaro Linux but not with Garuda Linux, the problem is in Garuda Linux. Right?
I reinstalled Garuda Linux (KDE) , accidentally used a bit older iso the first time and upgrade was a bit messy. Now the bug is gone.
Can't find an explanation for it. Well, if anyone has this bug in the future they can make a note here.
||same error with kdeNeon 20.04 using lazarus 2.0.10 and 2.0.12|
I have the same problem on openSUSE Tumbleweed with KDE-Plasma, it can circumvented by unsetting the following environment variables:
The desktop link contains the following command line:
unset KDE_FULL_SESSION DESKTOP_SESSION XDG_CURRENT_DESKTOP;/usr/bin/startlazarus
This has the side effect, that theme settings for menu shortcuts, system dialogs, colours etc. are not applied.
|2019-12-27 00:59||void09||New Issue|
|2019-12-27 13:18||Zeljan Rikalo||Assigned To||=> Zeljan Rikalo|
|2019-12-27 13:18||Zeljan Rikalo||Status||new => assigned|
|2019-12-28 13:09||Zeljan Rikalo||Status||assigned => feedback|
|2019-12-28 13:09||Zeljan Rikalo||LazTarget||=> -|
|2019-12-28 13:09||Zeljan Rikalo||Note Added: 0120101|
|2019-12-28 20:22||void09||File Added: Screenshot_20191228_212040.png|
|2019-12-28 20:22||void09||Note Added: 0120115|
|2019-12-28 20:22||void09||Status||feedback => assigned|
|2020-01-12 11:23||Zeljan Rikalo||Note Added: 0120354|
|2020-01-17 00:42||Kirinn||File Added: qtfonts-laz-ide.png|
|2020-01-17 00:42||Kirinn||File Added: qtfonts-laz-settings.png|
|2020-01-17 00:42||Kirinn||Note Added: 0120489|
|2020-01-29 19:52||Zeljan Rikalo||Relationship added||related to 0036637|
|2020-01-31 09:06||Zeljan Rikalo||Relationship added||related to 0036642|
|2020-01-31 09:06||Zeljan Rikalo||Relationship deleted||related to 0036642|
|2020-01-31 09:07||Zeljan Rikalo||Relationship added||related to 0036641|
|2020-01-31 10:27||Zeljan Rikalo||Status||assigned => confirmed|
|2020-01-31 10:27||Zeljan Rikalo||Note Added: 0120820|
|2020-01-31 13:08||Zeljan Rikalo||Note Added: 0120827|
|2020-01-31 15:18||Zeljan Rikalo||Status||confirmed => resolved|
|2020-01-31 15:18||Zeljan Rikalo||Resolution||open => fixed|
|2020-01-31 15:18||Zeljan Rikalo||Fixed in Revision||=> 62604|
|2020-01-31 15:18||Zeljan Rikalo||Widgetset||QT5 => QT5|
|2020-01-31 15:18||Zeljan Rikalo||Note Added: 0120828|
|2020-01-31 15:19||Zeljan Rikalo||Relationship deleted||related to 0036641|
|2020-02-08 13:50||Kirinn||Note Added: 0120942|
|2020-06-06 21:52||void09||Status||resolved => assigned|
|2020-06-06 21:52||void09||Resolution||fixed => reopened|
|2020-06-06 21:52||void09||Note Added: 0123281|
|2020-07-02 06:04||Kirinn||Note Added: 0123711|
|2020-07-02 09:05||Zeljan Rikalo||Note Added: 0123713|
|2020-08-22 11:58||Michael Karcher||Note Added: 0125077|
|2020-12-14 23:42||void09||Note Added: 0127614|
|2021-01-07 21:36||void09||Note Added: 0128153|
|2021-01-07 22:12||void09||Note Edited: 0128153||View Revisions|
|2021-01-07 23:11||void09||Note Edited: 0128153||View Revisions|
|2021-01-07 23:38||Juha Manninen||Note Added: 0128164|
|2021-01-08 01:55||void09||Note Added: 0128166|
|2021-02-26 20:06||Christian Ortiz||Note Added: 0129178|
|2021-02-26 20:06||Christian Ortiz||File Added: Screenshot_20210226_140416.png|
|2021-02-27 22:37||Lutz Mändle||Note Added: 0129217|
|2021-02-27 22:38||Lutz Mändle||Note Edited: 0129217||View Revisions|