Rasterizer:getBearing

Returns the bearing metric for a glyph, in pixels. The bearing is the horizontal distance from the cursor to the edge of the glyph.


bearing = Rasterizer:getBearing(character)

Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
bearingnumber The bearing of the glyph, in pixels.

bearing = Rasterizer:getBearing(codepoint)

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
bearingnumber The bearing of the glyph, in pixels.

See also