fontcolor

Defines the font color for the text or filler portion of an item.

In radio and check items, fontcolor defines the color of the bullet and check, respectively. In line items, fontcolor defines the color of the line. In other items, it defines the text color.

Syntax

   <fontcolor>color</fontcolor>
Table 1. fontcolor parameters
Parameter Type Description
color special The color may be expressed in any of the following formats:
  • Comma-separated RGB values. For example: 192,192,192
  • Hexadecimal-based RGB values. For example: #336699
  • Color name. For example: blue

Available in

button, check, combobox, field, label, line, list, popup, radio, richtext, slider, page global, form global

Examples

These samples all set the font color to chocolate.

   <fontcolor>chocolate</fontcolor>
   <fontcolor>210,105,30</fontcolor>
   <fontcolor>#993300</fontcolor>

Usage details

If fontcolor is not specified at the item level, the item derives its fontcolor setting from the page or form global level. If fontcolor is not specified at the page or form level, the default color for line items is grey. For all other items, the default color is black.