getWidth

public int getWidth(String text)

Get the width of the given text as it would be rendered using this font.

Return

The width in pixels.

Parameters

text

The text.