Re: [ROOT] Font problem in root 2.25?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 08 2000 - 16:53:05 MET


Hi Dariusz,

Default behaviour with Root is to use True Type Fonts.
If for speed reasons, you have disabled the TTF, you can improve
the quality in case of labels in small windows by selecting hardware fonts.
For example, do:

   gStyle->SetCanvasDefW(400);
   gStyle->SetCanvasDefH(300);
   gStyle->SetLabelFont(60,"X");
   gStyle->SetLabelFont(60,"Y");
   TH2F *hr = new TH2F("hr","font test",2,0,1,2,0,1);
   hr->Draw();

See TAttText for more info on the font precision/quality/speed.
    http://root.cern.ch/root/htmldoc/TAttText.html


Rene Brun

Dariusz Miskowiec wrote:
> 
> Dear rootwomen and rootmen,
> 
> The following magic sequence of commands produces a picture. (wow)
> 
> gStyle->SetCanvasDefW(400)
> gStyle->SetCanvasDefH(300)
> TH2F *hr = new TH2F("hr","font test",2,0,1,2,0,1)
> hr->Draw()
> 
> The axis labels look fine if I use root 2.23-08. They look
> terrible if I use root 2.25-00. I attach two gifs showing the
> difference. I do not use True Fonts. (My choice, isn't it?)
> 
> I am somewhat surprised that, apparently, I am the only one
> who feels disturbed by this. I can imagine the following
> explanations of this fact:
> 
> - everybody else uses always True Fonts, or
> - everybody else is blind, or
> - the root installation is screwed up (on the machines I tried).
> 
> Last August, in fact, we complained about this, and then Rene
> provided the possibility of using the non-scaled system fonts.
> They look great and are fast and this helped us at that time.
> But they cannot be rotated, and now it slowly comes to drawing
> histograms, in which case, as you know, one axis is vertical
> and so should be its title.
> 
> What to do?
> 
> Best regards
> Dariusz Miskowiec
> 
> --
> +-------------------------------------------------------------------+
> +  Dariusz Miskowiec                    E-mail: D.Miskowiec@gsi.de  +
> +  GSI, Planckstr. 1                    Phone:  0049-6159-712-133   +
> +  D-64291 Darmstadt                    Fax:    0049-6159-712-989   +
> +-------------------------------------------------------------------+
> 
>   --------------------------------------------------------------------------------
>  [Image]  [Image]



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET