Rasterizer:getAdvance
EditReturns the advance metric for a glyph, in pixels. The advance is the horizontal distance to advance the cursor after rendering the glyph.
Arguments
| Name | Type | Description |
| character | string | A character. |
Returns
| Name | Type | Description |
| advance | number | The advance of the glyph, in pixels. |
Arguments
| Name | Type | Description |
| codepoint | number | A codepoint. |
Returns
| Name | Type | Description |
| advance | number | The advance of the glyph, in pixels. |