labelfontinfo

Defines the font name, point size, and font characteristics for the label specified in the label option.

Syntax

   <labelfontinfo>
      <fontname>font name</fontname>
      <size>point size</size>
      <effect>effect1</effect>
      ...
      <effect>effectn</effect>
   </labelfontinfo>
Note: effects are optional.
Table 1. labelfontinfo properties
Parameter Type Description
font name string the name of the font
point size unsigned byte the size of the font
effect string Can be any of the following:
  • plain – Use plain face font.
  • bold – Use bold face font.
  • underline – Use underlined font.
  • italic – Use italic font.

Available in

check, checkgroup, combobox, field, list, pane, radio, radiogroup, slider

Example

This sample sets the font information to Palatino 12, plain (the default), underlined in the ANSI character set.

   <labelfontinfo>
      <fontname>Palatino</fontname>
      <size>12</size>
      <effect>underline</effect>
   </labelfontinfo>

Usage details

  1. Defaults first to page setting for fontinfo, then to the form setting for fontinfo. If neither setting exists, then the defaults are:
    • font name: Helvetica
    • point size: 8
    • weight: plain
    • effects: not underlined
    • form: not italics
  2. If any of the font info settings are invalid, then the defaults are used.
  3. The size option calculates item size using the font's average character width. Therefore, choice of font affects item width.
  4. XFDL supports the following fonts and font sizes:
    • Fonts: Courier, Times, Symbol (symbol), Helvetica, and Palatino.
    • Sizes: 8, 9, 10, 11, 12, 14, 16, 18, 24, 36, 48.
  5. Other fonts and font sizes may be used. However, especially for cross-platform Internet applications, it is best to choose from the ones cited previously since they are guaranteed to work.