@dmilligan
David I hope you can put me out of my misery.
I'm needing to right justify some text and need to the width of a string.
I've tried using font:width(text) but I'm obviously using it wrong.
Could you help me please, ie how do I get the pixel width of a piece of text.
Sorry to be a pain.
Cheers
Garry
FONT.LARGE:width("test")
See also editor.lua
@dmilligan
Thanks: tried that but get nil value medium error.
Here is the code I used, message is a string.
local qq = FONT.MEDIUM:width(message)
@dmilligan
David: BTW here's the screen dump.
(http://thumb.ibb.co/futv8F/VRAM0.jpg) (http://ibb.co/futv8F)
SORTED!
Looked in ML source and realised should MED not MEDIUM
:-)