Rasterizer:getBearing
EditReturns the bearing metric for a glyph, in pixels. The bearing is the horizontal distance from the cursor to the edge of the glyph.
Arguments
Name | Type | Description |
character | string | A character. |
Returns
Name | Type | Description |
bearing | number | The bearing of the glyph, in pixels. |
Arguments
Name | Type | Description |
codepoint | number | A codepoint. |
Returns
Name | Type | Description |
bearing | number | The bearing of the glyph, in pixels. |