SetFont
InstallShield 2022 » InstallScript Language Reference
Project:This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
The SetFont function sets the font and style when displaying text strings. You can use standard Windows fonts with this function.
Syntax
SetFont ( nItemID, nFontStyle, szFontName );
Parameters
Parameter |
Description |
|||||||||||||||
nItemID |
Specifies the item whose font and font style is to be set. Pass the following predefined constant in this parameter:
|
|||||||||||||||
nFontStyle |
Specifies font styles. Pass one or more of the following predefined constants in this parameter. All but STYLE_NORMAL can be bitwise ORed to specify multiple styles.
|
|||||||||||||||
szFontName |
Specifies the name of an available Windows font. Valid font names include Courier, Helv, Helvetica, Modern, Roman, Script, Terminal, Times, and TmsRmn. If the specified font is not found with the styles specified, Arial is used. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully set the font. |
< 0 |
Indicates that the function was unable to set the font. |
See Also