XFA Specification
Chapter 25, Rich Text Reference
Supported Character Formatting
942
Produces:
This sentence contains lowered text on a line.
Most of this sentence is lowered but this word appears on the line's baseline.
This sentence contains raised text on a line.
Superscripts and subscripts can be implemented using a combination of a baseline adjustment and font
size adjustment. However, vertical alignment can also be adjusted using
sub
(subscript) and
sup
(superscript) elements.
Bold
A region of text may be in bold type via the use of the
[CSS2]
style attribute or the
b
[XHTML]
Example:
<p>The<b> second </b>and
<span style="font-weight:bold"> fourth </span>
words are bold.
</p>
Produces:
The
second
and
fourth
words are bold.
Color
A color may be specified for a region of text via the
[CSS2]
style attribute. Color rendition is device-
and implementation-specific so the text may be rendered in a color other than the specified color.
Conforming implementations are merely required to make their best effort to render the requested color.
For example, when printing with a monochrome printer, colors other than black and white are usually
rendered as grey.
This specification supports a restricted set of
[CSS2]
color:colorValue
colorValue
values are described in the following table.
"colorValue" value
#rrggbb
Specifies color’s RGB value as …
Hexadecimal notation with a two-digit non-negative hexadecimal value each for
red, green, and blue. A value of
00
means the color is absent (zero-intensity)
whereas
ff
means it is at full intensity. Digits a through f may be upper or lower
case.
Separate non-negative integer decimal values for red, green, and blue. A value of
0 means the color is absent (zero-intensity) whereas 255 means it is at full
intensity.
rgb(r,g,b)