Font sizes

Use the fontSize style attribute to influence the size of the fonts used in an application.

This topic describes the possible values of the fontSize style attribute.

Syntax

{ generic-size | nnpt | xxem }
Note:
  1. generic-size is one of the generic sizes such as 'small' or 'xx-large'.
  2. nn defines an absolute size in number of points ( 1pt = 1/72 inches ).
  3. xx defines an relative size in the size units of the client ( 1em = as large as the font chosen in the client )

Usage

The language defines a set of generic font sizes, interpreted by the front end according to the graphical capability of the workstation.

Table 1. Generic font sizes
Generic font size name Meaning
xx-small
Tiny font size
x-small
Extra-small font size
small
Small font size
medium
Medium font size
large
Large font size
x-large
Extra-large font size
xx-large
Huge fonct size

You can also specify an absolute font size, by giving a numeric value followed by the units such as pt or em:

<StyleAttribute name="fontSize" value="medium" />
<StyleAttribute name="fontSize" value="xx-large" />
<StyleAttribute name="fontSize" value="12pt" />
<StyleAttribute name="fontSize" value="1em" />