Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetTextHeight: Difference between revisions

From Fightorder
Interwiki>Jk
No edit summary
 
m 1 revision imported
 
(No difference)

Latest revision as of 21:22, 13 November 2025

Development < Lua Scripting < GetTextHeight

GetTextHeight() Illustrations

note: the returned heights are normalized, so you need to multiply them with your wanted fontSize


GetTextHeight

 ( string singlelined_text ) -> number textHeight, number textDescender, number num_lines=1

File:Gettextheight singleline.png

GetTextHeight

 ( string multilined_text ) -> number textHeight, number textDescender, number num_lines

File:Gettextheight multiline.png