Text angle/alignment in TText and TPaveText objects

From: Charles Leggett (CGLeggett@lbl.gov)
Date: Wed Oct 28 1998 - 01:46:10 MET


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 -----------------------



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET