Hi Norbert, See http://root.cern.ch/root/html/TAttText.html and in particular the TAttText constructor for the conventions about fonts. font : Text font code = 10*fontnumber + precision Font numbers must be between 1 and 14 precision = 1 fast hardware fonts (steps in the size) precision = 2 scalable and rotatable hardware fonts In the case of Latex objects, if the font precision is 1, TLatex objects behave like TText objects. In your case, simply replace the statement gStyle->SetTextFont(7); by gStyle->SetTextFont(72); Rene Brun Norbert Danneberg wrote: > > Hi, > > the following macro produces only the desired LaTex output > if the gStyle::SetTextFont() is commented out > > { > > TCanvas* c1=new TCanvas("c1","c1"); > > gStyle->SetTextFont(7); > > Char_t Text[255]; > TLatex* t; > > sprintf(Text,"#eta = %4.3f #pm %4.3f",0.2,0.1); > t = new TLatex(0.1,+0.27,Text); > t->Draw(); > } > > Cheers, > > Norbert > > -- > > Norbert Danneberg > > ETH Zurich - Institute for Particle Physics > Laboratory for Nuclear Physics Phone.: +41-1-633-2034 > Hoenggerberg Fax.: +41-1-633-1067 > CH-8093 Zurich > > ETH Zurich - Institute for Particle Physics > Paul Scherrer Institute Phone.: +41-56-310-3284 > CH-5232 Villigen PSI Fax.: +41-56-310-4362 > > email: Norbert.Danneberg@psi.ch
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET