Modify

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 J-Paul Mesnage, 3 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

The pb come from the fontsize
Fix sent to Jon

comment:2 by J-Paul Mesnage, 2 years ago

Owner: changed from J-Paul Mesnage to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.