Rasterizer:getAdvance

Returns the advance metric for a glyph, in pixels. The advance is the horizontal distance to advance the cursor after rendering the glyph.


advance = Rasterizer:getAdvance(character)

Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
advancenumber The advance of the glyph, in pixels.

advance = Rasterizer:getAdvance(codepoint)

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
advancenumber The advance of the glyph, in pixels.

See also