GetTextHeight: Difference between revisions

From Spring
Jump to navigationJump to search
Jk (talk | contribs)
No edit summary
Jk (talk | contribs)
No edit summary
Line 5: Line 5:
'''GetTextHeight'''
'''GetTextHeight'''
   ( string singlelined_text )-> number textHeight, number textDescender, number num_lines=1
   ( string singlelined_text )-> number textHeight, number textDescender, number num_lines=1
[[Image:Gettextheight_multiline.png]]
[[Image:Gettextheight_singleline.png]]


'''GetTextHeight'''
'''GetTextHeight'''
   ( string multilined_text ) -> number textHeight, number textDescender, number num_lines
   ( string multilined_text ) -> number textHeight, number textDescender, number num_lines
[[Image:Gettextheight_multiline.png]]
[[Image:Gettextheight_multiline.png]]

Revision as of 08:48, 16 August 2009

GetTextHeight() Illustration

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

GetTextHeight

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