Weird spacing issue in text with special characters


ROOT Version: 6.12.06 (EPEL7 repository)
Platform: CentOS7 3.10.0-862.3.2.el7.x86_64
Compiler: c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)


Something strange happens with the following code snippet:

{
    gStyle->SetTextFont(43);
    gStyle->SetTextSize(21);
    auto t = new TLatex(.0, .5, "The longer this first sentence gets, the worse the dot is printed- 60.2 kg#upointyr");
    t->SetNDC();
    t->Draw();
    c1->SaveAs("test.pdf");
}

The text looks fine in the GUI, but the produced PDF is affected by a spacing issue around the dot:


proportional to the length of the sentence. Can you reproduce this issue?

No, I just ran you code on Mac using the master version . I get the same output on screen and on the pdf file.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.