@argdown/core
    Preparing search index...

    Function splitByLineWidth

    • Splits a string every x pixels, using string-pixel-width for measuring the width of the current line.

      Returns an array of substrings with width <= maxWidth.

      Only fonts measured by the string-pixel-width library are supported.

      Parameters

      • str: string
      • options: { bold?: boolean; font?: string; fontSize?: number; maxWidth?: number }

      Returns string[]