String_width - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Returns the width in pixels of the string in the current drawing font. This function is usually used to precisely position graphics and text.
Parameters
- string: The string for which the width should be returned.
Return Values
Returns the width of the string in pixels.
Example Call
//draws a line above the string
draw_text(10,10,"Some text#This is a longer line two");
w=string_width("Some text#This is a longer line two");
draw_line(10,10,10+w,10);
NOTOC