-
Notifications
You must be signed in to change notification settings - Fork 0
String_height
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Returns the height 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 height should be returned.
Returns the height of the string in pixels.
//draws a line at the left side of the string
draw_text(10,10,"Some text#This is a longer line two");
h=string_height("Some text#This is a longer line two");
draw_line(10,10,10,10+h);NOTOC
This is number 1