If I do the following, I expect a line of text with “foo”, then a line of text below it with “bar”, but instead I get a space between “foo” and “bar” on the same line:
TText tx; tx.DrawTextNDC(0.5,0.5,"foo\nbar");
If I capture the TText * returned from the method and ask GetTitle(), I get the proper string with \n in it. So it’s probably in the drawing routine that the \n gets converted into a space.
Should I be using one of the other TText-like classes to make a multiline text label on my canvas? Even if TText does not support multiline with \n, I believe it should not just silently convert it into a space. At least print a warning like “Warning: TText could not draw all contained characters, verify output.”