Font problem in TBrowser. Ubuntu 12.04

Hi,

I’ve installed latest 5.32.03 version on Ubuntu 12.04, x86_64 version.
Prior to compilation I installed a bunch of fonts mentioned in this topic: Adobe helvetica on ubuntu 11.04
I used the folloing to configure:

./configure linuxx8664gcc --enable-python --prefix=/usr/local

Installation went well, except that in TBrowser the font of directoris is small and unreadable. Is it possbible to adjust this in some config file of root?


Thanks,
Andrey

Inspect the output of (in your case, the ROOT’s “etc dir” is “/etc/root”):
grep -i font root-config --etcdir/*
and of:
grep -i font ${HOME}/.rootrc
and of:
grep -i font rootlogon.C

I’ve got:
system.rootrc:# Path where to look for TrueType fonts.
system.rootrc:Unix..Root.UseTTFonts: true
system.rootrc:
..Root.TTFontPath: $(ROOTSYS)/fonts
system.rootrc:Gui.DefaultFont: -
-helvetica-medium-r---12------iso8859-1
system.rootrc:Gui.MenuFont: -
-helvetica-medium-r---12------iso8859-1
system.rootrc:Gui.MenuHiFont: -
-helvetica-bold-r---12------iso8859-1
system.rootrc:Gui.DocFixedFont: -
-courier-medium-r---12------iso8859-1
system.rootrc:Gui.DocPropFont: -
-helvetica-medium-r---12------iso8859-1
system.rootrc:Gui.IconFont: -
-helvetica-medium-r---10------iso8859-1
system.rootrc:Gui.StatusFont: -
-helvetica-medium-r---10-----*-iso8859-1

Check that “UseTTFonts” is set to “true” and that the “TTFontPath” exists and contains something like 33 “.ttf” files.

Try to change “-12-” into “-18-” and “-10-” into “-14-” for all these different “Gui” related fonts.

Check the output of:
root-config --features
and make sure that it contains “xft”.

Inspect the output of:
grep -i xft root-config --etcdir/*
and of:
grep -i xft ${HOME}/.rootrc
and of:
grep -i xft rootlogon.C

I’ve got:
system.rootrc:X11.UseXft: no

Try to set the “UseXft” to “yes”.

Try also:
ls -aliR /etc/X11/fonts/
xlsfonts

BTW. I assume that the Ubuntu 12.04 machine (on which you compiled ROOT) is the machine that you DIRECTLY work on (i.e. your screen / X-server comes from that machine). If not then, do remember that you must install all appropriate font packages on the machine that runs your X-server (or your “X font server”, if you use it), too.

Thanks a lot!

[quote=“Pepe Le Pew”]Inspect the output of (in your case, the ROOT’s “etc dir” is “/etc/root”):
grep -i font root-config --etcdir/*
Try to change “-12-” into “-18-” and “-10-” into “-14-” for all these different “Gui” related fonts.
[/quote]
That helped, I edited the file /etc/root/system.rootrc and fonts look better now.

Thanks,
Andrey

I’m afraid this didn’t really solve the original problem. It’s simply less visible now.
BTW. If you make fonts bigger, there will be places in which the “original text” will be cut because the available “screen space” is too small. For example, have a look at your TBrowser’s window - there’s a string “Draw Option:” visible (left-up), but if you make fonts bigger, only the last part of it will be visible - something like " Option:".

After having a closer look at your picture … I think there is just one font, the “Gui.IconFont”, that has problems. Maybe you could simply change the size “-10-” into “-12-” and see how it behaves. Another fonts, except for the “Gui.IconFont” and the “Gui.StatusFont”, already use the size “-12-” and they are looking fine to me. If this still looks ugly, try “-11-” and/or “-13-” and/or “-14-”.

I just added a file ~/.rootrc in the home directory with

and the problem has gone (Unity, 12.04).
Thanks to Pepe Le Pew.

1 Like

[quote=“canislupus”]I just added a file ~/.rootrc in the home directory with

and the problem has gone (Unity, 12.04).
Thanks to Pepe Le Pew.[/quote]

I also confirm that this solution works on ubuntu 12.04 (installed from SLC 64 binaries v5.34.09.Linux-slc6_amd64-gcc4.6 )

Thanks!

for DUMMIES: problem with fonts and you don’t know how to do? follow this
in the terminal write:
$ root-config --etcdir
the directory that will appear is where you have to go with the terminal
open the file system.rootrc with:
$ sudo less system.rootrc
enter with your sudo-password
press “v” to modify the txt
and modify the line :
X11.UseXft: no
with
X11.UseXft: yes
press ctrl-x
press y (to confirm the saving) and enter (to overwrite the file)
try to open root and the TBrowser and it will be right :wink:

4 Likes

Great. Thanks. Solved my problem in root-6.18.04 on Ubuntu18.04

good one sir!..also thx to pepe le peew of course…but that needed some processing for the dummies XD
This will also work for peltools scanroot browser , but the system.rootrc file is within :
/usr/local/pelroot/root/etc