XML technologies / DocBook / Generating FO (PDF) / Modifying typography / Changing font families

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

Body text often uses a serif font, headings a sans-serif font, and code-like text a monospaced font. The following parameters control these choices:

Table: Available font parameters

Parameters

Default value

Description

body.font.family

serif

specifies the body-text font.

dingbat.font.family

serif

a font containing symbols or figures.

monospace.font.family

monospace

a monospaced font.

title.font.family

sans-serif

font used for chapter, section, table and other titles.

sans.font.family

sans-serif

a sans-serif font; currently unused by the stylesheets.

symbol.font.family

Symbol,
Zapf Dingbats

an additional font for symbols that may be absent from the main font.

To change one of these settings, pass the parameter on the command line or add it to a customization file (see Customizing DocBook XSL stylesheets). The value must match your FO formatter’s font configuration. Consult your product’s documentation for details.

  

back to top