Rasterizer:getWidth

Edit

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



Arguments

NameTypeDescription
glyphstring | number A character or codepoint.

Returns

NameTypeDescription
widthnumber The width, in pixels.

Arguments

None

Returns

NameTypeDescription
widthnumber The width, in pixels.

See also