# Elementname: `DefineFontfamily`

## Description

Defines a font family consisting of the shapes »regular», »bold«, »bold italic« and »italic«. To be used in Paragraph, Textblock, Fontface and Table with the attribute fontface.

Allowed attributes: fontsize, leading, name

Child elements: Bold, BoldItalic, Italic, Regular

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

### Attributes

fontsize (number)

  Font size in pt (PostScript points). Number without unit.

leading (number)

  Distance between two baselines in pt (PostScript points). Without unit.

name (text)

  The symbolic name that is used as a reference to access this font family.

### Remarks

The default fontface is named »text« and it can be redefined by defining a new font family called »text«.

The variants bold, italic and bold italic are optional.

## Example

    <DefineFontfamily name="Title" fontsize="12" leading="14">
      <Regular fontface="Helvetica Regular"/>
      <Bold fontface="Helvetica Bold"/>
      <Italic fontface="Helvetica Italic"/>
      <BoldItalic fontface="Helvetica Bold Italic"/>
    </DefineFontfamily>

This font family can now be accessed like this:

    <Textblock width="14" fontface="Title">
      <Paragraph>
        <Value>...<Value>
      </Paragraph>
    </Textblock>

## See also

LoadFontfile

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- Ol
- Options
- Otherwise
- Output
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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