• calculates the approximate width of a text, depending on a demo text avoid repeated calls (e.g. inside drawing methods)

    Parameters

    • paint: Paint
    • demoText: string

    Returns number