Rasterizer:getDimensions

Returns the dimensions of a glyph, or the dimensions of any glyph.


width, height = Rasterizer:getDimensions(character)

Arguments

NameTypeDescription
characterstring A character.

Returns

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

width, height = Rasterizer:getDimensions(codepoint)

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

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

width, height = Rasterizer:getDimensions()

Arguments

None

Returns

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

See also