Elementname: DefineFontalias

Description

Defines a font alias. When defining a font family, you can use the an alias for the fontname. Aliases are looked up recursively.

Allowed attributes: alias, existing

Child elements: (none)

Parent elements: AtPageCreation, AtPageShipout, Case, Contents, ForAll, Include, Layout, Loop, Otherwise, Record, SavePages, Until, While

Attributes

alias (text)

New (equivalent) name of the font

existing (text)

The name of the existing font family.

Example

<DefineFontalias existing="DejaVuSerif" alias="serif"/>
<DefineFontalias existing="DejaVuSerif-Bold" alias="serif-bold"/>
<DefineFontalias existing="DejaVuSerif-Italic" alias="serif-italic"/>
<DefineFontalias existing="DejaVuSerif-BoldItalic" alias="serif-bolditalic"/>

Now you can define a font family with

<DefineFontfamily name="title" fontsize="15" leading="17">
  <Regular fontface="serif"/>
  <Bold fontface="serif-bold"/>
  <BoldItalic fontface="serif-bolditalic"/>
  <Italic fontface="serif-italic"/>
</DefineFontfamily>

See also

DefineFontfamily

Commands

Version: 3.5.9 | Start page | Command reference | Other language: German