Well in fact it would be necessary to rewrite TextRect as well so that it gives the same result. For example if the function that returns the total height returns 3 lines and when you use TextRect to draw, there are 2 or 4, that's a problem of inconsistency.
If you do something to handle this, maybe it can be added to BGRABitmap, what do you think ?