[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3012: QT6 Fonts and the Font property


http://gambaswiki.org/bugtracker/edit?object=BUG.3012&from=L21haW4-

Comment #6 by bruce B:

The more I look at this the more confused I get.
Here is an updated tester.

For QT5
Step 1: I ran the project from within the IDE without setting the Application.Font in the code. That gave Fonts1.png It is as I expected. Except that the font for TextBox3 has been increased by 2 not 1. Which I think is a bug in the Gambas runtime or maybe the QT5 component?
Step 2: I ran the project from within the IDE SETTING the Application.Font in the code. That gave Fonts2.png It is what I expected, i.e all the fonts are now in the Serif face, the font for TextBox3 is still increased by 2 not 1.
Step 3: I changed the specification in the .form file using an external text editor so that the TextBox3 FONT line now read "Font = Font["Liberation Sans,+1"]" This gave Fonts3.png Now, that is exactly as I expected! The form is generally all in the Serif face except TextBox3 which is now in the Sans face, (but the size increase is still 2 not 1).

Now QT6 
This gets peculiar.
Step 4: As for Step 1, Application.Font not set in the code. This gave Fonts4.png Everything has turned to "Sans Serif,9" except for TextBox3 which is now magically 1 pt larger rather than 2 with QT5. So I dont understand where this sudden aversion to Liberation Sans comes from.
Step 5: As for step 2, setting the Application.Font in the code. This gave Fonts5.png Which is weird. Some things are Liberation Serif, some Sans Serif and the oddest one of all is that TextBox3 says it is now Sans Serif,10 but it is smaller than the Sans Serif,9 fonts?????
Step 6: Repeated Step 3 giving Fonts6.png Some of the fonts are expected, some not and the rendering of TextBox3 is not as it should be again (but the face is now correct).


So finally, the whole point of my bug report is that the IDE should save the font face as well as any other attributes selected in the IDE designer popup. As seen in the Steps 3 and 6 outcomes.

regards
bruce
 
p.s. I just tried the thing again with the GTK components and the size is increased by 2 again. Is that matter a separate bug?

----------------------------------------------------------------------------

Attachment: FormFont-0.0.2.tar.gz

Attachment: Fonts1.png

Attachment: Fonts2.png

Attachment: Fonts3.png

Attachment: Fonts4.png

Attachment: Fonts5.png

Attachment: Fonts6.png


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----