#### 7.6.5 Specifying inline properties for paragraph and character formats

The properties listed in Table 7-2 define the appearance of text formats in both HTML and RTF output.

Table 7-2 Inline properties for text formats

Property name | Valid property values
based | Name of another character format
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 | Synonym for font family
font size | Size; see §7.5.3 Establishing base values and units of measurement
font style | normal, italic, or oblique
font variant | normal or small-caps
font weight | normal or bold
font kern | 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 | none, uppercase, lowercase, or capitalize
color | CSS color designation
background color | CSS color designation
selector | (HTML output only) Format name preceded by a dot, for CSS use; overrides the default .class

For example:

[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.2 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 format components.

To compress text in a paragraph format using a percent value for font kern:

[CellCodePara]
based = CodePara
font size = 9pt
font kern = -5%

Previous Topic: 7.6.4 Understanding based vs. inline properties for paragraph formats

Next Topic: 7.6.6 Specifying block properties for paragraph formats

Parent Topic: 7.6 Configuring text output formats

Sibling Topics:

7.6.1 Naming and defining text formats

7.6.2 Specifying default properties for character formats

7.6.3 Specifying default properties for paragraph formats

7.6.4 Understanding based vs. inline properties for paragraph formats

7.6.6 Specifying block properties for paragraph formats

7.6.7 Configuring list formats

7.6.8 Assigning border properties to paragraph formats

7.6.9 Configuring character formats for HTML links

7.6.10 Specifying tab positions for RTF paragraph styles

Table of Contents • Index