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
This page was last edited on 3 June 2013, at 11:18.Content is available under zlib/libpng license unless otherwise noted.
Privacy policyAbout NSIS WikiDisclaimers