string_height

From ENIGMA

Jump to: navigation, search

Notation

string_height(string)

Description

Returns the height 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 height should be returned.

Return Values

Returns the height of the string in pixels.

Example Call

//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);
Personal tools