Hi Andreas, We are aware of the problem with TLatex when mixing greek characters with normal text, in particular if the normal text has more upper case letters than usual. The problem is with the positioning on the screen. Even when using True Type Fonts, the text is not drawn with the specified text size (there are steps). We hope that these problems will disappear with the introduction of TTF version 2 now available on several systems. Meanwhile, the only thing to do is to insert some blank characters as shown in the example below. void platex() { TCanvas *c1 = new TCanvas("c1","c1",10,10,700,900); c1->SetLeftMargin(0.14); gStyle->SetTitleW(0.8); TH1F *h = new TH1F("h","Angle between Minimum-Distance" " EMC Hits of ISR^{ }#gamma and Charged Track" " in r^{ }#varphi",100,0,3.141592); h->SetStats(0); h->SetMaximum(360); h->GetXaxis()->SetTitle("#varphi[rad]"); h->GetYaxis()->SetTitle("dN/d#varphi"); h->GetYaxis()->SetTitleOffset(1.4); h->Draw(); c1->Print("c1.ps"); } Rene Brun Andreas Petzold wrote: > > hello rooters, > > i'm having trouble greek symbols in histogram titles. sometimes they > disappear below the normal test (see attachment), sometimes spaces are > inserted for no obvious reason. anyway that doesn't look really nice. > > is there a way to for root to format the titles properly? > > thanx > > andreas petzold > > -------------------------------------------------------------------------------- > > Name: example.ps.gz > example.ps.gz Type: Postscript Document (application/postscript) > Encoding: BASE64
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:51 MET