-
Notifications
You must be signed in to change notification settings - Fork 0
String_width
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Returns the width in pixels of the string in the current drawing font. This function is usually used to precisely position graphics and text.
- string: The string for which the width should be returned.
Returns the width of the string in pixels.
//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
This is number 1