Font families

Use the fontFamily style attribute to define a font family.

This section describes the possible values of the fontFamily style attribute.


font-family [,...]
  1. font-family is a specific or generic font name such as sans-serif, monospace.


The fontFamily style attribute allows to define a single or a set of font names separated by a comma. These are used as font-family property in a CSS style.

Consider using generic font names:
  • serif
  • sans-serif
  • cursive
  • fantasy
  • monospace

For more details about possible fonts, see CSS font families.


<StyleAttribute name="fontFamily" value="sans-serif" />
<StyleAttribute name="fontFamily" value="'Courier New'" />
<StyleAttribute name="fontFamily" value="'Times New Roman',Times,serif" />