Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: newwork01 on May 24, 2016, 05:20:17 AM
Title:
UILabel get current line height?
Post by:
newwork01
on
May 24, 2016, 05:20:17 AM
how to get current line height of the text in UILabel? :'(
Title:
Re: UILabel get current line height?
Post by:
ArenMook
on
May 24, 2016, 04:45:20 PM
Number of lines:
label
.
processedText
.
Count
(
"
\n
"
)
;
Height in pixels:
label
.
height
Title:
Re: UILabel get current line height?
Post by:
newwork01
on
May 24, 2016, 09:13:23 PM
i mean current height of 1 single line in UILabel, not all line of the text.
Title:
Re: UILabel get current line height?
Post by:
ArenMook
on
May 26, 2016, 11:30:40 AM
UILabel.fontSize for the base value, UILabel.finalFontSize for the scaled value (when the font gets shrunk via the "fit" option)