Setting Object Fonts

The layout mode Style menu includes the Font item. This item enables you to set both the default font, and a specific font for an object (or objects). When this item is selected, a list of the different font options is presented. The first section of the list contains the options Inherited and Define. The second section contains a list of any previously defined font styles (the list can currently be empty). The final section of the list contains the Clear Styles item which enable you to clear the list of previously defined fonts. Depending on which font option you select, an object's font can be permanent, or change as any font associated with its environment changes. Font selection applies to all the currently selected objects, except those for which font is not an applicable attribute (e.g. an image form field object).

Setting the Default Font

You can set the default font for all new objects as follows. Ensure that no objects in the layout are selected by clicking on the right mouse button (or left, if you have revered them). Select Font from the Style menu and click on the item in the flyout list which you want to be the default font for all new objects (note that Inherited is the most common selection for the default font). A diamond shape appears against the selected default font.

Font Option - Inherited

The Inherited font option means that an object's font is inherited from its parent object. For example, a radio button which is owned by a frame inherits its font from the frame. If the font of the frame is changed, then the radio button inherits the new font. Font inheritance is supported both in layout mode and in the Zim language. Note that in both FORM DEFINE and DISPLAY DEFINE, form fields which are not directly owned by another form field object are considered to be owned by the window object for purposes of font inheritance. Hence if the window's font is changed, the font of these form fields changes accordingly.

Font Option - Define

Selecting the Define option displays the Windows common dialog for font selection. This enables you to define and select any font you would like. The dialog also supports the two special effects Strikeout (or Strikethrough) and Underline (or Underscore). If the selected font is not a member of the list of font styles displayed in the font flyout, it is added to the list.

Font Option - Font Style List

A previously defined font style can be quickly selected by clicking on the desired font style from the list of defined font styles.

Font Option - Clear Styles

This item clears the list of previously defined font styles.