frame-msg
    Preparing search index...

    Class TxTextSpriteBlock

    A block of text rendered as sprites, for use in a browser environment.

    Index

    Constructors

    Properties

    fontFamily: string

    The font family used for rendering the text.

    fontSize: number

    The font size used for rendering the text, in pixels.

    maxDisplayRows: number

    The maximum number of rows of text to be displayed.

    sprites: TxSprite[] = []

    An array of TxSprite instances, each representing a line of rendered text.

    text: string

    The raw text content to be rendered.

    width: number

    The width constraint for the text layout, in pixels.

    Methods

    • Packs the text block header and sprite offsets into a binary format.

      Returns Uint8Array

      Uint8Array Binary representation of the text block.

      Error if there are no sprites to pack.