@schie/fluent-zpl - v0.10.0
    Preparing search index...

    Interface TextOpts

    Options for text fields on the label.

    This interface defines the configuration options for adding text to a label:

    • at: Specifies the x and y coordinates for the text position.
    • text: The actual text string to be printed.
    • font: Optional font settings including family, height, and width.
    • rotate: Optional orientation of the text (N, R, I, B).
    • wrap: Optional text wrapping settings including width, number of lines, spacing, justification, and hanging indent.
    interface TextOpts {
        at: Position;
        font?: { family?: FontFamily; h?: number; w?: number };
        rotate?: Orientation;
        text: string;
        wrap?: {
            hangingIndent?: number;
            justify?: Justify;
            lines?: number;
            spacing?: number;
            width: number;
        };
    }
    Index

    Properties

    font?: { family?: FontFamily; h?: number; w?: number }

    Type Declaration

    • Optionalfamily?: FontFamily
    • Optionalh?: number

      Font height in dots; rounded to an integer with a minimum of 1.

    • Optionalw?: number

      Font width in dots; rounded to an integer with a minimum of 1 (defaults to height when omitted).

    rotate?: Orientation
    text: string
    wrap?: {
        hangingIndent?: number;
        justify?: Justify;
        lines?: number;
        spacing?: number;
        width: number;
    }

    Type Declaration

    • OptionalhangingIndent?: number

      Hanging indent in dots; rounded to an integer with a minimum of 0.

    • Optionaljustify?: Justify
    • Optionallines?: number
    • Optionalspacing?: number

      Inter-line spacing in dots; rounded to an integer with a minimum of 0.

    • width: number