TrueType Font Support In ROOT


ROOT supports now also TrueType fonts on X11/Unix (it's the default for the Win32 version). The TrueType font rendering is done by the FreeType Engine. The FreeType library supports advanced features like font hinting and smoothing (anti-aliasing). Both features are used in the ROOT interface to FreeType. The fonts used by ROOT are kindly provided by Microsoft and are freely available via their TrueType Fonts web page.

To see the difference between scaled X11 and TrueType fonts see the "before" and "after" pictures (compare side-by-side, especially note the axis numbering and the slanted histogram title). The differences speak for themselves.

The TrueType facility in ROOT is built as a pure add-on. This means that the FreeType library and the ROOT FreeType interface library ($ROOTSYS/lib/libGX11TTF.so) are only loaded if ROOT finds at startup the directory as specified by the resource flag "Root.TTFontPath" (the default is "$(HOME)/ttf/fonts"). You can also control the usage of TrueType fonts with the resource flag "Root.UseTTFonts" in your private .rootrc file (the default is "true").

To get TrueType fonts working in ROOT on your machine, just follow these steps:

That's all.


Getting libttf.a for Building ROOT from Source


Rene Brun, Fons Rademakers
Last update 13/6/2000 by FR