Reference/CreateFont: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=CreateFont= user_var(handle output) face_name [height] [weight] [/ITALIC] [/UNDERLINE] [/STRIKE] Creates a font and puts its handle into user_var. For more information about ...") |
mNo edit summary |
||
Line 11: | Line 11: | ||
CreateFont $1 "Times New Roman" "7" "700" /UNDERLINE | CreateFont $1 "Times New Roman" "7" "700" /UNDERLINE | ||
SendMessage $0 ${WM_SETFONT} $1 1</highlight-nsis> | SendMessage $0 ${WM_SETFONT} $1 1</highlight-nsis> | ||
''Command introduced with NSIS v2.0'' |
Latest revision as of 11:18, 3 June 2013
CreateFont
user_var(handle output) face_name [height] [weight] [/ITALIC] [/UNDERLINE] [/STRIKE]
Creates a font and puts its handle into user_var. For more information about the different parameters have a look at MSDN's page about the Win32 API function CreateFont().
You can get the current font used by NSIS using the ^Font and ^FontSize LangStrings.
!include WinMessages.nsh GetDlgItem $0 $HWNDPARENT 1 CreateFont $1 "Times New Roman" "7" "700" /UNDERLINE SendMessage $0 ${WM_SETFONT} $1 1
Command introduced with NSIS v2.0