Shouldn’t the text appear inside the pink rectangle? But I get this:
In one case the text isn’t in the pink rectangle. Any idea what could be going wrong? My juce version is from Dec 13th, 2019 – any bugs like this been fixed since then?
Totally sure this is not your case BUT in my noob world - and very often almost always - when stuff in wrong places meets rectangle.removefromXYZ it’s me forgetting that the original rectagle is affected by the call so if I wanna keep an untouched reference I am better of creating first a copy of the original and then do the removefromXYZ from it.
This regards horizontal alignment and doesn’t seem to be related to the issue you have linked to. EDIT: an actual change has been made to the text rendering alignment so that may actually change something in your case too
Try making r6 const auto so that you’re sure it isn’t being changed, then perhaps use a different background color temporarily for it only, to make sure r6 actually covers the area that you expect it to