# 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 fontface="Title">
      <Paragraph>
        <Value>...<Value>
      </Paragraph>
    </Textblock>

## See also

LoadFontfile, DefineFontalias

# Commands

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

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