FirstLineHeight
Returns the height of the first text line of the given multi-lined text when printed with this TextRenderer. The height is in pixels. You can pass either single or multi-lined text to this function but it'll always return the height of the first text line. Notice that like any other function of TextRenderer this function takes a reference to a string so you have to construct a string variable of the text before passing it to this function. Examples TextRenderer renderer( ... );
String text = "First line\nSecond line\nThird line"; // Get the height of the first line of the text ("First line") // int textHeight = renderer.FirstLineHeight( text ); Other functions of the class TextRenderer
Questions about FirstLineHeight? Click here. |