-
Notifications
You must be signed in to change notification settings - Fork 0
String_width_line
hugh greene edited this page Jun 20, 2022
·
1 revision
NOTOC
Returns the width in pixels of the indicated line of the string in the current drawing font. Line starts at 0, so 1 is line two, 2 is line three and so on. This function is usually used to precisely position graphics and text.
- string: The string for which the width should be returned.
- line: The line for which the width should be returned.
Returns the width in pixels.
//draws a line above the first line of the string
draw_text(10,10,"Some text#This is a longer line two");
w=string_width_line("Some text#This is a longer line two",0);
draw_line(10,10,10+w,10);
edited by hpg678 on Github