[Gambas-bugtracker] Bug #2110: QT Italic font gets cut off
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Tue Mar 2 22:27:18 CET 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2110&from=L21haW4-
Comment #6 by Benoît MINISINI:
Two screenshots: one with 'gb.qt5', one with 'gb.gtk3'.
All labels and textlabels have AutoResize set. The first ones are left aligned, the last ones are right aligned.
For Qt5:
We can see that the width is correctly computed (it is slightly larger for italic fonts), but right aligned text is drawn too far right.
Same thing for TextLabels. This is normal, as internally Label and TextLabel share the same widget.
For GTK+3:
This is almost the contrary. Right-aligned text is not drawn too far right, but italic is not taken into account when computing the optimal width!
GUI toolkits are funny, aren't they?
----------------------------------------------------------------------------
Attachment: capture_20210302_222015.png
Attachment: capture_20210302_222126.png
More information about the Bugtracker
mailing list