Okay I see the problem now. It is way more complicated than I thought. The same goes for italic font. Some letters will be cut off at the end.
So I guess it is never a good idea to set the text objects size exactly to the text size.
Perhaps instead of guessing I could use some sort of percentage "buffer zone" around the text. That way it would be scalable.
For now I will use something like
Text: Set size to (Self.TextWidth+Self.TextWidth÷10, Self.TextHeight+Self.TextHeight÷10)
which will make the actual size 10% larger.
Thanks Ashley for the explanation!