View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0036483||Packages||Widgetset||public||2019-12-27 00:59||2020-08-22 13:41|
|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?
|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|