Jump to content

Is there a case for $GUI_FONTBOLD


Recommended Posts

Looking at GuiCtrlSetFont, I know the weight parameter controls the "boldness", and the attribute controls the fonts attributes

  •   $GUI_FONTNORMAL (0) = Normal
  •   $GUI_FONTITALIC (2) = Italic
  •   $GUI_FONTUNDER (4) = Underlined
  •   $GUI_FONTSTRIKE (8) = Strike

_GDIPlus_FontCreate, has a style parameter that has 

  •   0 - Normal weight or thickness of the typeface
  •   1 - Bold typeface
  •   2 - Italic typeface
  •   4 - Underline
  •   8 - Strikethrough

You can use the gui constants for _GDIPlus_FontCreate but there isn't a constant for the "Bold" I normally add it myself in my scripts, $GUI_FONTBOLD = 1, but would it be a good addition to the default GUIConstantsEx.au3?

Link to comment
Share on other sites

The GuiCtrlSetFont is using the MSDN CreateFont so defining $GUI_FONTBOLD = 1 will just be ignored

the weigth must be selected to have a bold font

as AutoIt is a direct wrapper to MSDN api I will not change this behavior

Sorry

 

Link to comment
Share on other sites

Yeah, no worries. Just thought it could be used more for _GDIPlus_FontCreate along with the other $GUI constants rather than with GuiCtrlSetFont.

Thanks for the explanation.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...