PreviousNext
Macrovision

SetFont

InstallShield 2008 ยป InstallScript Language Reference

Project-Specific

Project

This information applies to the following project types:

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

SetFont Parameters 

Parameter

Description

nItemID

Specifies the item whose font and font style is to be set. Pass the following predefined constant in this parameter:

  • FONT_TITLE—Specifies the main title of the setup procedure, which is displayed in the top left corner of the setup window.

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.

  • STYLE_NORMAL—No bold, italic, or shadow (cannot be ORed)
  • STYLE_BOLD—Bold text.
  • STYLE_ITALIC—Italic text.
  • STYLE_SHADOW—Text with shadow drawn.
  • STYLE_UNDERLINE—Underlined text.

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

SetFont 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




Copyright Information | Contact Macrovision