Modify

Opened 12 months ago

Last modified 6 days 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 6 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

The pb come from the fontsize
Fix sent to Jon

comment:2 Changed 6 days 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.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.