I'm not sure about the number of lines, but you should be able to get the required height in pixels using GUIStyle.CalcHeight:
http://docs.unity3d.com/Documentation/ScriptReference/GUIStyle.CalcHeight.html
↧