Rasterizer:getBearing

Edit

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



Arguments

NameTypeDescription
characterstring A character.

Returns

NameTypeDescription
bearingnumber The bearing of the glyph, in pixels.

Arguments

NameTypeDescription
codepointnumber A codepoint.

Returns

NameTypeDescription
bearingnumber The bearing of the glyph, in pixels.

See also