Re: TPaveText::AddText() behavior: Unix vs Win32

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Feb 06 1999 - 10:42:14 MET


S.P. Wakely wrote:
> 
> Hi ROOTers,
> 
> The following macro behaves differently under Win32 and Dec Unix (ROOT
> 2.21/03).  Under Win98, the newlines generate empty boxes while in unix they
> properly generate new lines.
> 
> Output to PostScript does not produce the newlines in either case.
> (However, if the same text is imported from a file using GetFile(), newlines
> are created as expected)
> 
> Can anyone confirm this on other platforms?
> 
> {
> TCanvas *c = new TCanvas("c","Test",1);
> TPaveText *pt = new TPaveText(0,0,1,1);
> pt->AddText("0\n1\n2\n3");
> pt->Draw();
> }
> 
> Thanks,
> Scott


Scott,
You will see many differences with the "\n" characters in Root text
strings.

 - With Postscript the backslash will give a blank
 - On X11 with the new TrueTypeFonts the backslash is ignored
 - on X11 with the old fonts a backslash generates a new line on the
screen
 - on NT, a backslash generates a blank

In TText, TPaveLabels, TPaveText, we are not planning to support the
"\n"
action as being a new line.

Rene Brun



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