Version dev

# `NoBreak`

since version 2.3.14

Don’t allow a line break within this element

## Child elements

`A`, `B`, `Barcode`, `Br`, `Clip`, `Color`, `Fontface`, `ForAll`, `Frame`, `HSpace`, `I`, `Image`, `Loop`, `NoBreak`, `Span`, `Sub`, `Sup`, `Switch`, `U`, `URL`, `Value`

## Parent elements

`A`, `B`, `Case`, `Color`, `Fontface`, `ForAll`, `I`, `Li`, `Loop`, `NoBreak`, `Otherwise`, `Paragraph`, `Span`, `U`, `URL`, `Until`, `While`

## Attributes

`factor` (number, optional)
  Multiplier for the font size when reduce=fontsize. Default value: 0.9. That means the font size gets decreased by 0.9 until the text fits the objects width.
`fontfamily` (text, optional)
  The name of the fontface for text to be reduced. The default is “text” (lowercase t).
`maxwidth` (number or length, optional)
  Set the maximum width of the text if it cannot be deduced from the current surrounding (such as table cells).
`reduce` (optional)
  Reduce the text size if necessary.
  - `fontfit`: Reduces the text by scaling down the font size so the text exactly fits the available space.
  - `fontsize`: Reduces the text by decreasing the font size in steps.
  - `cut`: Inserts text given in the attribute text if the paragraph is too long.
  - `keeptogether`: Don’t allow a line break within NoBreak (default)
`text` (optional, since version 2.3.53)
  The text to be inserted if the paragraph should be cut. For example ‘…’

## Example

    <PlaceObject>
      <Textblock width="5">
        <Paragraph>
          <NoBreak reduce="fontsize" factor="0.7">
            <Value>The quick brown fox jumps over the lazy dog.</Value>
          </NoBreak>
          <Value> </Value>
          <Value>The quick brown fox jumps over the lazy dog.</Value>
        </Paragraph>
      </Textblock>
    </PlaceObject>

#### On this page