The fonts table

This is a 'database table' parameter. Please refer to passing database tables for a detailed explanation of the database table format. In all the following examples we assume that the recordseparator is ^ and the fieldseparator is | .

Field nr. 5 in the entries parameter is an external key referring to a record in this table.

Record definition
fields Name Type Default Range
0 Key String No default,
obligatory field
 
1 Font name String No default,
obligatory field
All fonts supported by the system.
2 Font style Integer No default,
obligatory field
0 = plain, 1 = bold, 2 = italic ; 3 = bold & italic
3 Font size Integer No default,
obligatory field
 

 

font profiles

fontprofile and tipfontprofile from the options parameter

In the options parameter we defined the fontprofile and tipfontprofile options. Which implies that the fontprofile(s) defined by these options are required too.

So we need at least 2 fontprofiles (actually we only need 1 fontprofile because fontprofiles can be shared).

built in font profiles

defaultfont and tipdefaultfont are built in font profiles. These 2 profiles can be used without the need to define them first in the fonts parameter.

You can override these built-in fontprofiles.

examples

(assumptions: fontprofile = defaultfont, tipfontprofile = tipdefaultfont )

<PARAM name=fonts value="
^defaultfont|SansSerif|3|15
^tipdefaultfont|Serif|0|13
">

<PARAM name=entries value="
^a|tab nr. 1||||font1
^b|tab nr. 2||||font2
^c|tab nr. 3||||font3
^d|tab nr. 4
">

<PARAM name=fonts value="
^font1|SansSerif|1|15
^font2|SansSerif|2|15
^font3|Serif|0|15
">