1.1.3 Fontsize and Action Data Types
Fontsize.
A fontsize can be defined in several ways which allow the size of text to be
specified in
absolute values, relative to some external entity,
or relative to some font
property. In general the fontsize must be different from 0 unless the option description
mentions otherwise.
In the most common case a fontsize contains a single float
value which specifies re-
fers to units in the user coordinate system:
fontsize=12
The second variant contains a percentage, where the basis of the percentage depends on
the context (e.g.
the width of the fitbox for PDF_fit_textline( ):
fontsize=8%
In the third variant, the fontsize is specified as an option list which must contain a key-
word and a number. The keyword describes the desired font metric
according to Table
1.1, and the number contains the desired size. PDFlib will calculate the proper fontsize so
that the selected text metric matches the supplied value:
fontsize={capheight 5}
Action list.
An action list specifies one or more actions. Each
entry in the list consists
of an event keyword (trigger) and a list of action handles which must have been created