Rasterizer:getWidth

Returns the width of a glyph, or the maximum width of any glyph.


width = Rasterizer:getWidth(character)

Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
widthnumber The width, in pixels.

width = Rasterizer:getWidth(codepoint)

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
widthnumber The width, in pixels.

width = Rasterizer:getWidth()

Arguments

None

Returns

NameTypeDescription
widthnumber The width, in pixels.

See also