# Font problem in plot

**URL:** <https://root-forum.cern.ch/t/font-problem-in-plot/44396>\
**Category:** General Chat\
**Tags:** root\
**Created:** [April 13, 2021, 7:29am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396 "2021-04-13T07:29:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![keyvan\_127.0.0.1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_127.0.0.1/32/25555_2.png) [@keyvan\_127.0.0.1](https://root-forum.cern.ch/u/keyvan_127.0.0.1)\
**Post date:** [April 13, 2021, 7:29am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/1 "2021-04-13T07:29:06Z")

</div>

Some Symbols ( Sigma ) dosn’t display in my plots and just a empty rectangle will display !  
According to [this](https://root-forum.cern.ch/t/missing-font-in-root-plot/31049)  
I tried :

```auto
ls -l /etc/fonts/conf.d/30-urw-aliases.conf 

```

but dosn’t solve my problem .  
I have two system with ubuntu 16.04, this is very amazing that one of them works well but the other does not! both have same ubuntu and same root version , and i used same commands for plotting.

I attached two image that one of them is plotted in one system correctly and the other in another system.

[image1](https://i.ibb.co/BT0dxh1/Inked1-LI.jpg)

[image2](https://i.ibb.co/KWgjxY9/Inked2-LI.jpg)

as you can see in image 1, sigma symbol can’t be displayed.  
what is problem and how we can solve this?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 13, 2021, 7:50am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/2 "2021-04-13T07:50:24Z")

</div>

Greeks characters are taken `symbol.ttf` in the `fonts` folder of the ROOT installation:

```auto
% ls $ROOTSYS/fonts
BlackChancery.ttf	FreeSansOblique.otf	STIXGeneralItalic.otf	STIXSiz5Sym.otf courbd.ttf symbol.ttf verdana.ttf
DroidSansFallback.ttf	FreeSerif.otf STIXSiz1Sym.otf arial.ttf courbi.ttf times.ttf verdanab.ttf
FreeMono.otf FreeSerifBold.otf	STIXSiz1SymBol.otf	arialbd.ttf couri.ttf timesbd.ttf verdanai.ttf
FreeMonoBold.otf	FreeSerifBoldItalic.otf	STIXSiz2Sym.otf arialbi.ttf georgia.ttf timesbi.ttf verdanaz.ttf
FreeMonoBoldOblique.otf	FreeSerifItalic.otf	STIXSiz2SymBol.otf	ariali.ttf georgiab.ttf timesi.ttf webdings.ttf
FreeMonoOblique.otf	LICENSE STIXSiz3Sym.otf ariblk.ttf georgiai.ttf trebuc.ttf wingding.ttf
FreeSans.otf STIXGeneral.otf STIXSiz3SymBol.otf	comic.ttf georgiaz.ttf trebucbd.ttf
FreeSansBold.otf	STIXGeneralBol.otf	STIXSiz4Sym.otf comicbd.ttf impact.ttf trebucbi.ttf
FreeSansBoldOblique.otf	STIXGeneralBolIta.otf	STIXSiz4SymBol.otf	cour.ttf monotype.ttf trebucit.ttf

```

---

<div class="post-metadata">

**Author:** ![keyvan\_127.0.0.1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_127.0.0.1/32/25555_2.png) [@keyvan\_127.0.0.1](https://root-forum.cern.ch/u/keyvan_127.0.0.1)\
**Post date:** [April 13, 2021, 9:03am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/3 "2021-04-13T09:03:50Z")

</div>

thanks for your reply .

i checked fonts in root installation directory .( `/usr/share/root/fonst`), i have ` symbol.ttf`

[imageOfFonts](https://i.ibb.co/xJDvJL6/Screenshot-from-2021-04-13-13-21-12.png)

but its seems root don’t using this fonts

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 13, 2021, 9:06am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/4 "2021-04-13T09:06:25Z")

</div>

Is the variable $ROOTSYS defined ?

---

<div class="post-metadata">

**Author:** ![keyvan\_127.0.0.1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_127.0.0.1/32/25555_2.png) [@keyvan\_127.0.0.1](https://root-forum.cern.ch/u/keyvan_127.0.0.1)\
**Post date:** [April 13, 2021, 9:13am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/5 "2021-04-13T09:13:03Z")

</div>

No , when i tried ` ls $ROOTSYS/fonts`, this error occured :

```auto

ls: cannot access /fonts: No such file or directory

```

Also when i use` cd $ROOTSYS`, nothing happen.

**Note : Root was installed by default in ubuntu 16.04 . i don’t installed it from any website.**

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 13, 2021, 9:29am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/6 "2021-04-13T09:29:12Z")

</div>

You need to have ROOTSYS defined. In the place where ROOT is installed you have a folder called `bin`. It contains `thisroot.sh`. You should “source” that file.

```auto
$ source where_root_is_installed/bin/thisroot.sh

```

Usually you put this command in your `.profile` or equivalent.

---

<div class="post-metadata">

**Author:** ![keyvan\_127.0.0.1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_127.0.0.1/32/25555_2.png) [@keyvan\_127.0.0.1](https://root-forum.cern.ch/u/keyvan_127.0.0.1)\
**Post date:** [April 13, 2021, 10:03am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/7 "2021-04-13T10:03:33Z")

</div>

i searched for `thisroot.sh` but this bash file dosn’t exists . i used `ubuntu 16.04` that have root package by default, so i didn’t install it with `wget` .

i only have a file `root.sh` exists in `/usr/bin`. and when i use :

`/usr/bin/root`

root get stated .

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [April 13, 2021, 10:29am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/8 "2021-04-13T10:29:36Z")

</div>

Hi @keyvan_127.0.0.1 ,  
how did you install ROOT exactly? with `apt-get install root` or similar? The ROOT package in the ubuntu repos is out of date (I didn’t think it was still there). Or was it via Snap?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 13, 2021, 11:15am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/9 "2021-04-13T11:15:48Z")

</div>

You said that you have the folder `/usr/share/root/fonts` . So it looks like your root version is installed in `/usr/share/root/` . In that case you find the `thisroot*` files in `/usr/share/root/bin`

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [April 13, 2021, 11:44am UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/10 "2021-04-13T11:44:13Z")

</div>

(note that this being a system installation of ROOT from a package manager, it might not even have a `thisroot.sh`)

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [April 13, 2021, 1:25pm UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/11 "2021-04-13T13:25:45Z")

</div>

There’s [ROOT 5.34](https://packages.ubuntu.com/xenial/root-system) in Ubuntu’s 16.04 repositories, and the installation doesn’t look like Snap to me, Snap will never put entries into `/usr/bin`.

Please keep in mind Ubuntu 16.04 goes into End of Life support this month and will stop recieving security and maintainence updates. I’d really recommend upgrading to a newer system aside from the ROOT issues you may be having.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 13, 2021, 1:42pm UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/12 "2021-04-13T13:42:20Z")

</div>

The ROOT team provides [ready-to-use binary distributions for some systems (see “ **Download a pre-compiled binary distribution** ” therein)](https://root.cern/install/#download-a-pre-compiled-binary-distribution), including various Ubuntu versions, which you just need to download and unpack. For Ubuntu 16.04 / x86\_64 / gcc 5.4:

[https://root.cern/download/?C=M;O=A;P=\*[uU][bB][uU][nN][tT][uU]\*16\*](https://root.cern/download/?C=M;O=A;P=*%5BuU%5D%5BbB%5D%5BuU%5D%5BnN%5D%5BtT%5D%5BuU%5D*16*)

BTW. Before using it, make sure that you [“completely remove” (“purge”) all “system-provided” ROOT related packages](https://root-forum.cern.ch/t/missing-canvas/17664/17).

---

<div class="post-metadata">

**Author:** ![keyvan\_127.0.0.1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_127.0.0.1/32/25555_2.png) [@keyvan\_127.0.0.1](https://root-forum.cern.ch/u/keyvan_127.0.0.1)\
**Post date:** [April 13, 2021, 2:55pm UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/13 "2021-04-13T14:55:39Z")

</div>

My main problem is as follows :  
i have two machines, one of them is **thinkpad X131e** and another one is **thinkpad T440**.

I use _ **exactly** _ same packages for my researches and **exactly** same ubuntu version ! but it is very strange for me when i plot my result, the first machine give me full notations but the second one cannot display some notations specially sigma notation.

in short, all of things are completely same in two machines but the second machine can not support from some mathematical notation ( such as sigma) in my plotes.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [April 13, 2021, 3:52pm UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/14 "2021-04-13T15:52:27Z")

</div>

Assuming you installed ROOT via `apt-get`, I don’t think we can help much, that package corresponds to an unmaintained ROOT version (v5.34) and the package itself is also unmaintained.

See [https://root.cern/install](https://root.cern/install) for various ways in which it is possible to install a recent ROOT version, including a list of dependencies at [https://root.cern/install/dependencies](https://root.cern/install/dependencies).

If issues persist, we can then probably help.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 13, 2021, 4:22pm UTC](https://root-forum.cern.ch/t/font-problem-in-plot/44396/15 "2021-04-13T16:22:15Z")

</div>

Compare the list of fonts that are installed on both machines:  
`dpkg -l "*[fF][oO][nN][tT]*" | grep ii`
