# Font problem in TBrowser. Ubuntu 12.04

**URL:** <https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266>\
**Category:** ROOT\
**Created:** [May 9, 2012, 9:23pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266 "2012-05-09T21:23:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Pozdnyakov](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/andrey_pozdnyakov/32/12419_2.png) [@Andrey\_Pozdnyakov](https://root-forum.cern.ch/u/Andrey_Pozdnyakov)\
**Post date:** [May 9, 2012, 9:23pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/1 "2012-05-09T21:23:38Z")

</div>

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](https://root-forum.cern.ch/t/adobe-helvetica-on-ubuntu-11-04/12319/1)  
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?

 ![](https://root-forum.cern.ch/uploads/default/original/2X/1/13581baf1aa4f9cc681e26d73d687889d67ec2ba.png)  

Thanks,  
Andrey

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 9, 2012, 9:27pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/2 "2012-05-09T21:27:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Andrey\_Pozdnyakov](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/andrey_pozdnyakov/32/12419_2.png) [@Andrey\_Pozdnyakov](https://root-forum.cern.ch/u/Andrey_Pozdnyakov)\
**Post date:** [May 10, 2012, 8:53pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/3 "2012-05-10T20:53:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 11, 2012, 7:09am UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/4 "2012-05-11T07:09:25Z")

</div>

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:".

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 11, 2012, 10:55am UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/5 "2012-05-11T10:55:02Z")

</div>

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-”.

---

<div class="post-metadata">

**Author:** ![canislupus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@canislupus](https://root-forum.cern.ch/u/canislupus)\
**Post date:** [May 25, 2013, 4:15pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/6 "2013-05-25T16:15:56Z")

</div>

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

```auto

```

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

---

<div class="post-metadata">

**Author:** ![darinb](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/darinb/32/11264_2.png) [@darinb](https://root-forum.cern.ch/u/darinb)\
**Post date:** [July 12, 2013, 7:16pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/7 "2013-07-12T19:16:57Z")

</div>

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

```auto

```

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!

---

<div class="post-metadata">

**Author:** ![bobo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f9ae1b/32.png) [@bobo](https://root-forum.cern.ch/u/bobo)\
**Post date:** [August 8, 2017, 9:23pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/8 "2017-08-08T21:23:07Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![kobus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/e274bd/32.png) [@kobus](https://root-forum.cern.ch/u/kobus)\
**Post date:** [April 23, 2020, 12:43pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/9 "2020-04-23T12:43:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ethan\_1987](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ethan_1987/32/39137_2.png) [@Ethan\_1987](https://root-forum.cern.ch/u/Ethan_1987)\
**Post date:** [April 27, 2021, 10:06pm UTC](https://root-forum.cern.ch/t/font-problem-in-tbrowser-ubuntu-12-04/14266/10 "2021-04-27T22:06:36Z")

</div>

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
