Text angle/alignment in TText and TPaveText objects

Charles Leggett (CGLeggett@lbl.gov)
Tue, 27 Oct 1998 16:46:10 -0800


Is SetTextAngle() implemented for TPaveText objects? I can't seem to get it to
work. ie:

TPaveText *l1 = new TPaveText(0.9,0,1.1,.5);
l1->AddText("text");
l1->SetTextAngle(90.);
l1->Draw();

does not produce rotated text.

Also, the meaning of SetTextAlign seems to shift for TText objects when
SetTextAngle is used. That is, for text rotated 90 degrees, an alignment of (21)
becomes an alignment of (12). Or another way of looking at it is that the X and
Y axes that the alignment is done relative to are the axes of the text string,
not those of the pad. Is this intentional?

Charles Leggett

-------------------------------------------------------------------------------
| Lawrence Berkeley National Lab | <CGLeggett@lbl.gov> |
| 1 Cyclotron Road, MS 50E-124 | NERSC / D0 |
| Berkeley, CA 94720 | Eagles may soar, but weasels don't |
| (510) 486-2930 Office: 50E-1519 | get sucked into jet engines. |
------------------------- http://annwm.lbl.gov/~leggett -----------------------