I am reading strings from an ASCII-file and would like to place them quite close to the right border of a canvas I created. In many cases the strings are too long and, therefore, parts of the line are not visible anymore since the are beyond the border of the canvas.
Is there a simple way to split the lines without going through the string and using #splitline?
No, if you use one single to TLatex it is the only way.
You can also to several call to TLatex.
You can also do a right alignment … surely it is the best see: root.cern.ch/root/html604/TAttText.html#T1
Yes the font do not have all the same extension. You can also you a TPaveText instead of a simple text.
It will make sure the text fits in a box. root.cern.ch/root/html604/TPaveText.html
Thanks. TPaveText seems to resize the text if it doesn’t fit inside the box. It doesn’t wrap the lines if they are too long (maybe an idea for a new feature?).