benners Posted June 27 Share Posted June 27 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 More sharing options...
jpm Posted June 27 Share Posted June 27 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 More sharing options...
benners Posted June 27 Author Share Posted June 27 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now