Usage
Syntax: gettextheight(float zoom, string font, string style);
Returns integer.
Explanation
Returns the vertical size of a text with the specified properties.
Typically used in conjunction with showtext.
Example
function onCreated() { //The height of any bolded text with font Arial and zoom factor 1.5. echo(gettextheight(1.5, "Arial", "b")); }
... Will echo 32.
Categories
CategoryFunctionClientside