Rasterizer:getAdvance

Edit

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



Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
advancenumber The advance of the glyph, in pixels.

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
advancenumber The advance of the glyph, in pixels.

See also