Function calcMaxTextNumFromWidth

  • EXPERIMENTAL

    [en] Calculate text number drawable within specified width.

    [jp] 指定幅に描画できる最大文字数を計算

    See

    https://developer.mozilla.org/en-US/docs/Web/CSS/font

    Returns

    letter num

    Parameters

    • testString: string

      String(Letter) used to calculate

    • limitWidth: number

      Line width to check

    • font: string | FontData = builtInDefaultFontPropValue

      Font data:

    Returns number

Generated using TypeDoc