Rasterizer:getWidth

Edit

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




Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
widthnumber The width, in pixels.

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
widthnumber The width, in pixels.

Arguments

None

Returns

NameTypeDescription
widthnumber The width, in pixels.

See also