Opened 3 years ago
Last modified 2 years 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 by , 3 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 2 years ago
| Owner: | changed from to |
|---|

The pb come from the fontsize
Fix sent to Jon