[ROOT] Problems with Umlauts

From: Alexander Dietz (adietz@mickey.mpi-hd.mpg.de)
Date: Mon Nov 25 2002 - 12:48:34 MET


Hello Rooters,

I want to use german umlauts in axis-titles using #ddot{}.
This works well exept the size of the title is changed!
See the following example code:

  // creating example histogram
  TH1F* h1=new TH1F("h1","test",100,1,100);
  for (int i=0;i<=10000;i++) {
    h1->Fill(gRandom->Gaus(50,30));
  }

  // draw the histogram
  h1->Draw();

  // setting titles and changing size
  h1->GetXaxis()->SetTitle("#ddot{o}");
  h1->GetXaxis()->SetTitleSize(0.06);
  h1->GetYaxis()->SetTitle("H#ddot{a}ufigkeit");
  h1->GetYaxis()->SetTitleSize(0.06);


When I execute this example code I can saw the umlauts on the picture
correctly.
But when I save the picture to a file and look at the generated
postscript-file I can see the umlauts no longer!

What can I do that the picture is saved with the correct umlauts in a
file?


-----------------------------------
Alexander Dietz
Max Planck Institut fuer Kernphysik
Saupfercheckweg 1
Postfach 10 39 80
D-69029 Heidelberg

Phone: +49-6221-516-259



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:20 MET