Dear expert,

I am trying to understand which font is used by ROOT. I am using linux, so helvetica it is not installed. From the edit interface ROOT says it is using helvetica, but it is not, because helvetica is a sans-serif font, while the one I see has serif. See the attachment.

I tried also the example on TAttText, here the difference (look at the ‘1’):

I tried on a mac and the result is different from my linux, equal to the one here: root.cern.ch/root/html/TAttText.html

I tried on lxplus, and it works, so it seems to be a problem of my computer. Do you know how to install the proper font on linux (fedora)?

I think I’ve solved installing this package: corefonts.sourceforge.net/

Can you add a warning in case the font is not found?

ROOT comes with TTF fonts.
They should be somewhere in “${ROOTSYS}/fonts” or “${ROOTSYS}/share/root/fonts”.
Have a look at your “${HOME}/.rootrc” and your “root-config --etcdir/system.rootrc” and check the settings:
Unix.*.Root.UseTTFonts: true
..Root.TTFontPath: /full/path/to/the/ROOT/subdirectory/with/TTF/fonts

[quote=“Wile E. Coyote”]ROOT comes with TTF fonts.
They should be somewhere in “${ROOTSYS}/fonts” or “${ROOTSYS}/share/root/fonts”.
Have a look at your “${HOME}/.rootrc” and your “root-config --etcdir/system.rootrc” and check the settings:
Unix.*.Root.UseTTFonts: true
..Root.TTFontPath: /full/path/to/the/ROOT/subdirectory/with/TTF/fonts[/quote]

Thank you. In /usr/share/root/rootrc I have

# Path where to look for TrueType fonts.
Unix.*.Root.UseTTFonts:     true
*.*.Root.TTFontPath:        /usr/share/root/fonts

but I have no /usr/share/root/fonts directory. I have installed ROOT from the fedora repository updates.

By the way I think the important thing is to have a warning when ROOT doesn’t find the proper font.

Can it be that that ROOT is “split” into multiple packages in Fedora (that’s the case in Ubuntu) -> and so, maybe you need to install some “optional” package.

yes, but I think I have installed all the available root* packages:

root.x86_64                                                                            5.32.04-1.fc17                                                        @updates   
root-cint.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-cintex.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-clarens.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-core.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-doc.noarch                                                                        5.32.04-1.fc17                                                        @updates   
root-fftw.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-foam.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-fumili.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-gdml.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-genetic.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-genvector.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-geom.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-graf.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-graf-asimage.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-graf-fitsio.x86_64                                                                5.32.04-1.fc17                                                        @updates   
root-graf-gpad.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-graf-gviz.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-graf-postscript.x86_64                                                            5.32.04-1.fc17                                                        @updates   
root-graf-qt.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-graf-x11.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-graf3d.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-graf3d-eve.x86_64                                                                 5.32.04-1.fc17                                                        @updates   
root-graf3d-gl.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-graf3d-gviz3d.x86_64                                                              5.32.04-1.fc17                                                        @updates   
root-graf3d-x3d.x86_64                                                                 5.32.04-1.fc17                                                        @updates   
root-gui.x86_64                                                                        5.32.04-1.fc17                                                        @updates   
root-gui-fitpanel.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-gui-ged.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-gui-qt.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-gui-recorder.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-guibuilder.x86_64                                                                 5.32.04-1.fc17                                                        @updates   
root-hbook.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-hist.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-hist-factory.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-hist-painter.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-html.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-icons.noarch                                                                      5.32.04-1.fc17                                                        @updates   
root-io.x86_64                                                                         5.32.04-1.fc17                                                        @updates   
root-io-dcache.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-io-rfio.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-io-sql.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-io-xml.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-mathcore.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-mathmore.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-matrix.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-memstat.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-minuit.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-minuit2.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-mlp.x86_64                                                                        5.32.04-1.fc17                                                        @updates   
root-montecarlo-eg.x86_64                                                              5.32.04-1.fc17                                                        @updates   
root-montecarlo-vmc.x86_64                                                             5.32.04-1.fc17                                                        @updates   
root-net.x86_64                                                                        5.32.04-1.fc17                                                        @updates   
root-net-auth.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-net-bonjour.x86_64                                                                5.32.04-1.fc17                                                        @updates   
root-net-globus.x86_64                                                                 5.32.04-1.fc17                                                        @updates   
root-net-krb5.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-net-ldap.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-net-rpdutils.x86_64                                                               5.32.04-1.fc17                                                        @updates   
root-netx.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-peac.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-physics.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-proof.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-proof-bench.x86_64                                                                5.32.04-1.fc17                                                        @updates   
root-proof-pq2.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-proof-sessionviewer.x86_64                                                        5.32.04-1.fc17                                                        @updates   
root-proofd.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-python.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-quadp.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-reflex.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-roofit.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-rootd.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-ruby.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-smatrix.x86_64                                                                    5.32.04-1.fc17                                                        @updates   
root-spectrum.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-spectrum-painter.x86_64                                                           5.32.04-1.fc17                                                        @updates   
root-splot.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-sql-mysql.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-sql-odbc.x86_64                                                                   5.32.04-1.fc17                                                        @updates   
root-sql-pgsql.x86_64                                                                  5.32.04-1.fc17                                                        @updates   
root-table.x86_64                                                                      5.32.04-1.fc17                                                        @updates   
root-tail.x86_64                                                                       1.2-8.fc17                                                            @anaconda-0
root-tmva.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-tree.x86_64                                                                       5.32.04-1.fc17                                                        @updates   
root-tree-player.x86_64                                                                5.32.04-1.fc17                                                        @updates   
root-tree-viewer.x86_64                                                                5.32.04-1.fc17                                                        @updates   
root-tutorial.noarch                                                                   5.32.04-1.fc17                                                        @updates   
root-unuran.x86_64                                                                     5.32.04-1.fc17                                                        @updates   
root-xproof.x86_64                                                                     5.32.04-1.fc17                                                        @updates   

I was missing only the root-io-gfal package, doesn’t seems to be related to fonts