Opened 21 months ago
Last modified 9 months ago
#3944 assigned Bug
GUICtrlSetFont (and GUISetFont) sets font name inconsistently
Reported by: | TimRude | Owned by: | Jon |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.16.1 | Severity: | None |
Keywords: | GUICtrlSetFont GUISetFont | Cc: |
Description
The following uses of GUICtrlSetFont don't result in the same font name being selected:
GUICtrlSetFont(-1, Default, Default, Default, Default, Default)
GUICtrlSetFont(-1, Default, Default, Default, "", Default)
GUICtrlSetFont(-1, Default)
Using Default as the fontname parameter results in the Microsoft Sans Serif font (on my Win 10 English system). This is the same font that is used if there is no GUICtrlSetFont or GUISetFont statement in effect at all for the control.
Using "" as the fontname, or not specifiying a fontname parameter at all in the function results in the Arial font (on my Win 10 English system).
Demo code and screenshot here:
https://www.autoitscript.com/forum/topic/209752-inconsistent-results-from-using-guictrlsetfont/?do=getNewComment
Attachments (0)
Change History (2)
comment:1 Changed 15 months ago by Jpm
- Owner set to Jpm
- Status changed from new to assigned
comment:2 Changed 9 months ago by Jpm
- Owner changed from Jpm to Jon
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
The pb come from the fontsize
Fix sent to Jon