It doesn't work with multiline texts. MeasureText doesn't consider wraps, so it gives a wrong dimensions respect to the rendered view