Font Style attributes

Reference information
Project page Font Styles
Related topics Working with attribute panes

Introduction

A Font Style represents a font selection that is used in the installer's dialog boxes and controls. To use a font style, you must first define one or more Font Localizations, then use the font style in the appropriate dialog box or control's Font setting.

Most Font Styles only have a single localization, but you may need to define additional localizations if the base font does not support all characters for all languages in a multilingual installer.

MSI note Windows Installer dialog boxes don't allow you to set a font for the dialog box at once; you must set the font for each individual control. If you don't set a font, the control will use the predefined DefaultUIFont. Windows Installer dialog boxes internally use a single fixed font (which is not accessible outside the installer) and do not scale if you select a different font for its controls.

Tarma note Tarma Installer dialog boxes do support per-dialog fonts; the dialog font is used for all controls in the dialog box that don't have their own font set. Because Tarma Installer dialog boxes are implemented as Windows dialog resources, the dialog box and all its controls scale with the dialog font size and aspect ratio. However, controls that use a different font still scale with the dialog font, not with their own font. You must therefore take care to avoid text clipping if a control uses a substantially larger font than its dialog box.

Predefined font styles

Each Tarma ExpertInstall project contains a number of predefined font styles that are used by the Tarma Installer and Windows Installer dialog boxes. If you want to change a font style for all dialog boxes or controls at once, we recommend that you change the font settings of the appropriate predefined font style instead of making individual changes to each of the dialog boxes. This ensures that your dialog boxes maintain a consistent overall look.

Font style Description
BoldFont Used for dialog and control fonts that need extra emphasis. It uses the same typeface and size as DefaultUIFont but has its Bold attribute set.
DefaultUIFont Used for all Tarma dialog boxes and all controls that don't have a specific font set. This style uses the MS Shell Dlg pseudo-typeface and an 8pt size.
SubtitleFont Used for all page subtitles in dialog boxes. It currently uses the same typeface and size as DefaultUIFont, but you may change this if you want the subtitles to appear differently.
TitleFont Used for all page titles in dialog boxes. It uses a larger and heavier style and a different typeface (Tahoma; on Windows versions without this font, a different sans-serif typeface is automatically substituted).
UnderlineFont Used for controls that need an underline, in particular the Tarma hyperlink controls. It uses the same typeface and size as DefaultUIFont but has its Underline attribute set.

Attributes

This pane contains the following attributes and options.

Attribute Description
Style name Enter the name for the font style. This name is used in Tarma ExpertInstall to refer to the style and must be unique among all font styles.