Rasterizer:getDimensions

Edit

Returns the dimensions of a glyph, or the largest dimensions of any glyph in the font.



Arguments

NameTypeDescription
glyphstring A character or codepoint.

Returns

NameTypeDescription
widthnumber The width, in pixels.
heightnumber The height, in pixels.

Arguments

None

Returns

NameTypeDescription
widthnumber The width, in pixels.
heightnumber The height, in pixels.

See also