Skip to content

String_height

hpgDesigns edited this page Aug 8, 2021 · 1 revision

Notation

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);

NOTOC

This is number 1

Clone this wiki locally