Vertical centering of text labels (Fedora 30)


ROOT Version: 6.18/02
Platform: Fedora 30
Compiler: gcc (GCC) 9.1.1 20190503 (Red Hat 9.1.1-1)


Hi all. I’ve recently tried ROOT on Fedora 30 (running on Xorg) and noticed that font rendering is always misaligned with respect to the vertical centering. Baseline of labels, number entries, checkboxes, buttons and pretty much every text label in the GUI is shifted up. Here is a screenshot for a reference:

Screenshot%20from%202019-09-03%2009-24-08

On Ubuntu 18.04 fonts render nicely. Is it something that can be easily tweaked?

P.S. I tried uncommenting ‘TTFontPath’ in system.rootrc. I suppose this should make ROOT use its local fonts. But it did not fix the centering:

Unix.*.Root.UseTTFonts:     true
*.*.Root.TTFontPath:        $(ROOTSYS)/fonts

Our GUI expert @bellenot is not here for the time being. He will ok at this when he will be back.

Hi,

I’ll check. In the meanwhile, you can try to change the X11.UseXft value in system.rootrc:

X11.UseXft:              yes

Which is unrelated to the UseTTFonts and TTFontPath

Cheers, Bertrand.

Hi,
I am interested in that:
Could you show how it looks like with Fedora 30

Otto

Yeah I did have the option turned on X11.UseXft: yes. I’ve prepared a screenshot of guitest.C running on Ubuntu 18.04 (left) vs Fedora 30 (right). Both systems running on xOrg.

It’s notable that on Ubuntu vertical centering of the text looks correct. Whereas on Fedora it is off. Buttons’ and text boxes captions are shifted up. I’ve also noticed that button and textbox heights are different (21px on Ubuntu vs 20px on Fedora).

Don’t get me wrong. I do some web design stuff and this issue is like a knife poking my eye :slight_smile:

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