The properties listed in Table 7-1 define the appearance of text formats in both HTML and RTF output.
based |
|
font family |
One or more font names per CSS rules. For outputs which allow only single fonts, such as RTF, the first font name is used. For RTF output, do not enclose the font name in quotes |
font name |
|
font size |
Size; see §7.5.3 Establishing base values and units of measurement. |
font style |
|
font variant |
|
font weight |
|
font kern |
(RTF output only) Percent or points or other units: positive number to expand text, negative number to compress text |
text decoration |
none, or a combination of underline, overline, and strike-through |
text transform |
|
color |
|
background color |
|
selector |
(HTML output only) Format name preceded by a dot, for CSS use; overrides the default .class |
[Bold] based = Char font weight = bold
[Italic] based = Char font style = italic
Bold and Italic both incorporate the properties of character format Char; see §7.6.1 Specifying default properties for character formats.
To specify text color for a heading (for example):
[MySubHeading] based = Heading2 color = rgb(42,96,148)
To show a horizontal line above the heading, you could use either a block-property fixed-length line in any color, or an inline-property overline in the same color as the text. For the inline property you would add:
text decoration = overline
For the block property, you would instead specify a top border for the paragraph:
border top = MyBorder
And then define the border format:
[MyBorder] color = rgb(42,96,148) type = single thick = 1pt space = 6pt
See §8.2 Defining border subformats.
To compress text in a paragraph format using a percent value for font kern:
[CellCodePara] based = CodePara font size = 9pt font kern = -5%