Re: [ROOT] Alignment of TLatex output

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 16 2001 - 08:38:49 MET


Hi Marco,

I see some slight differences (using 3.02/03) between the screen and ps
outputs.
It is extremely difficult to get a perfect match because the fonts
used are not identical.

Rene Brun

On Thu, 15 Nov 2001, Marco van Leeuwen wrote:

> Hi,
> 
> While doing some serious plotting, I found that the outlining of
> superscripts and subscripts in the Times font is not quite satisfactory.
> The funny thing is that it looks fine on the screen (when using TrueType
> fonts at least), but in the printout it is a bit messed up. The effect
> seems to have something to do with the length of the text printed. This
> bit of code should demonstrate it:
> 
> {{
>   TCanvas::MakeDefCanvas();
>   TLatex *L=new TLatex();
>   L->SetTextSize(0.1);
>   L->SetTextFont(132);
>   L->DrawLatex(0.1,0.8,"V c^{-2}");
>   L->DrawLatex(0.1,0.7,"eV c^{-2}");
>   L->DrawLatex(0.1,0.6,"GeV c^{-2}");
>   L->DrawLatex(0.1,0.5,"gev c^{-2}");
>   L->DrawLatex(0.1,0.4,"gevc^{-2}");
>   c1->Print();
> }}
> 
> Have a look at c1.ps to see that the longer the line, the more the
> exponent (-2) is shifted to the left. At least, on my system: RedHat
> 6.1/6.2 and ROOT 3.31/06. I can imagine that it is difficult to get the
> sizing right in all cases, but if someone could have a look at it, I
> would be very grateful.
> 
> Best regards,
> 
> Marco.
> 



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