Added an assertion
Exposed CalcTextSize(), GetCursorScreenPos() for more advanced fiddling