Re: [ROOT] DrawText/Postscript Problems

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 18 2001 - 22:24:03 MEST


Hi Jon,

Some special characters like ~,!,?,#,^,& have special meaning for
Postscript when used via TText objects. (see TAttText and TPostScript
classes).
To get the same behaviour on the screen and Postscript, use TLatex
instead.
 TLatex *t = new TLatex;
 t->DrawLatex(.2,.2,"pt>1&&");


Rene Brun

On Wed, 18 Apr 2001, Jon Gans wrote:

> 
> This looks fine on screen but gets garbled when saving to PS and EPS (gif
> is fine)
> 
> t = new TText() ;
> t->DrawText(.2,.2,"pt>1&&");
> 
> I think the &'s do it. I've tried different versions of root, 3.06, 2.26
> and different versions of ghostscript and even direct to HP
> printers. Running on Linux and HP-UX.
> 
>  Jon
>  
> ______________________________________________________________________________
> 
> Jonathan Gans
> Yale University
> Physics Department
> PO BOX 208120                                        
> New Haven, CT 06520-8120     	                     http://www.jongans.com
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET