Typeface.measure

Measure space the given text would span. Uses dots as the unit.

If availableSpace is specified, assumes text wrapping. Text wrapping is only performed on whitespace characters.

  1. Vector2 measure(Vector2 availableSpace, String text, bool wrap)
  2. Vector2 measure(String text)
    interface Typeface
    final const
    measure
    (
    String
    )
    (
    String text
    )
    if (
    isSomeString!String
    )

Parameters

text String

Text to measure.

Meta