Managing text location on a canvas

I have a text to be put in a defined area - rectangle
how does one identify what max size font will fit in side the area
Times New Roman is a smaller font than others?
With identifying the size font and having a example Number of characters how do you measure the length of the text correctly so it can be put in the right side of the area without clipping the text. Or better still is to directly print text on the canvas that works from the right side of the given area. I have tried this before and the results are not accurate . as clipping has accrued as a disappointing result. when you want numbers they have to be straight or its unprofessional.

https://stackoverflow.com/questions/2548132/how-to-get-textwidth-of-string-without-canvas

Alan McDonald

1 Like