offset>x ( n font string -- x )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » Rendering text

Prev:x>offset ( x font string -- n )
Next:draw-text ( font text -- )


Vocabulary
ui.text

Inputs
nan integer
fonta font
stringa string


Outputs
xa real


Generic word contract
Outputs the x coordinate of the character at the given index.

Definition


Methods