Next: Styles, Previous: Shadow Attributes, Up: Common Attributes [Contents]

#### 8.6.3 Text Formatting Attributes

These attributes can be used to change the appearance of text labels. They are basically alternatives to text formatting escapes, see Text Formatting. They do not apply to graphs: Graphviz labels can only be styled using text formatting escapes in a colon-label. Other languages have them.

`text.ident`

  This can be `left`, `center` or `right` and specifies the line alignment of the label. The default is centering, except for non-empty boxes in signalling charts, where the default is left. It can be abbreviated as simply `ident`.

`text.color`

  Sets the color of the label. See Specifying Colors for the syntax of colors.

`text.bgcolor`

  Sets the background color of the label, none by default.

`text.font.face`

  Specify the font face family using this attribute, such as `Arial` or `Helvetica`. The fonts available depend on the platform. See Fonts.

`text.font.lang`

  Specify the language for which you seek glyphs. This has effect only on Mac/Linux, see Fonts.

`text.font.type`

  Select between normal or small font, superscript or subscript using the values `normal`, `small`, `superscript` and `subscript`, respectively.

`text.bold`
`text.italic`
`text.underline`

  You can set them to `yes` or `no`.

`text.gap`
`text.gap.up`
`text.gap.down`
`text.gap.left`
`text.gap.righ`

  These four attribues can be used to set the margins around the label in pixels. If you set `text.gap`, it sets all four to the same value.

`text.gap.spacing`

  This sets the line spacing in pixels.

`text.size.normal`
`text.size.small`

  These sets the height of the normal font type (see `text.font.type` above) or the height of small, superscript and subscript, respectivel.

`text.format`

  Takes a (quoted) string as its value. Here you can specify any of the text formatting escapes that will govern the style of the label, see Text Formatting. Specifying them here or directly at the beginning of the label has the same effect, so having this attribute is more useful for styles.

`text.link_format`

  Similar to the above, you can specify the formatting applied to links. See Links.

`text.wrap`

  Used in signalling charts only. Can be set to `yes` or `no`. If disabled (default), the label will follow the line breaks inserted by the user. If enabled, these line breaks are ignored and the line is typeset to fill available space, see Text Formatting.

Next: Styles, Previous: Shadow Attributes, Up: Common Attributes [Contents]