Font weights

Use the fontWeight style attribute to define the aspect of a font.

Syntax

{ normal
| bold
| bolder
| lighter
| numeric-weight
}
  1. numeric-weight is an whole number in the range 1 to 1000. See CSS font-weight for more details.

Usage

The value of the fontWeight style attribute is directly used a CSS font-weight attribute.

The applicable font weights depend on the fontFamily style attribute that is used by the element.

For more details about the meaning and possible font weight values, see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight.

Example

<StyleAttribute name="fontWeight" value="bold" />