Setups iteration. Takes current font parameters from the given NanoVega context.
Returns current text bounds.
Returns current horizontal text bounds.
Returns current vertical text bounds.
Add chars.
Resets iteration. Takes current font parameters from the given NanoVega context.
Restart iteration. Will not restore font.
Restore font settings for the context.
Returns iterator which you can use to calculate text bounds and advancement. This is usable when you need to do some text layouting with wrapping, to avoid guesswork ("will advancement for this space stay the same?"), and Schlemiel's algorithm. Note that you can copy the returned struct to save iterator state.
You can check if iterator is valid with valid property, put new chars with put method, get current advance with advance property, and current bounds with getBounds(ref float[4] bounds) method.