Re: [ROOT] Re: Problem with Histogram Title

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Feb 07 2003 - 10:41:09 MET


Hi Matthew, 

Matthew Wood <mdwood@midway.uchicago.edu> wrote concerning
  [ROOT] Re: Problem with Histogram Title [Thu, 6 Feb 2003 23:15:31 -0600 (CST)] 
----------------------------------------------------------------------
> I think I inadvertently may have sent my first email to the wrong
> list.  Is roottalk@pcroot.cern.ch different from 
> roottalk@root.cern.ch?  

AFAIK there's no difference, though I believe `pcroot.cern.ch' is
depreciated, as it is a specific host, while `root.cern.ch' is a
logical name that'll stay until the end of time(?).

> In any event, I have been told I should indicate what version I am
> currently using.  I am currently running 3.04/02 for Linux Redhat
> 7.3 gcc 3.2.

Just a short question: Does Red Hat 7.3 use the same glibc version as
Red Hat 8.0?  In that case, you've just answered the question of 
Gunasingha Rathnayaka with `yes, definitely'.  Otherwise, I guess the
answer is `yes, most likely'. 

> I tried installing the truetype fonts by downloading
> ttf_fonts.tar.gz, unpacking it, and specifying the path to the ttf
> directory in system.rootrc.  It may be that this isn't the correct
> procedure for getting truetype fonts to work.

Did you also put 

   Unix.*.Root.UseTTFonts:     true

into your ROOT reconfiguration file? (~/.rootrc,
/etc/root/system.rootrc, $(ROOTSYS)/etc/system.rootrc, or ./.rootrc)

Unfortunately, the page 

  http://root.cern.ch/root/TrueType.html

doesn't really explain this very well.   

You can also check at start up if the True Type library is loaded or
not, simply by looking for the line 

  FreeType Engine v1.x used to render TrueType fonts.

just after the banner. 

If that doesn't help, check if you have compiled in the True Type Font
support, by doing 

  root-config --has-ttf 

It should give you a resounding `yes' if True Type Font support was
enabled in the build.  If not, you need to rebuild ROOT.  Install the
package `freetype-devel', and do your normal build.   In general, one
can do `root-config --has-<feature>' to check if a given <feature> was
compiled into ROOT, for example `thread', `opengl', `pythia', `cern',
`mysql', `pgsql', `rfio', `rpath', `soversion', `shares', `shadowpw',
`krb5', `exceptions', and so on.  There's  no option to list all the
features just now, but if someone would add the lines 

    --has) 
        # List features 
	out="$out $features" 
	;;

just before the `--has-*' case in `config/root-config.in', then you
could do `root-config --has' and you'll get a list of all supported
features (For their exact meaning, read `README/INSTALL').  

Note, that if you don't really need multiple version of ROOT installed
at once, you can build a set RPMs and install those on your system via
the package manager - giving you much tighter integration into your
existing system.   Please read the `README/INSTALL' file (search for
`RPM'). 

> Matthew Wood
> 
> On Thu, 6 Feb 2003, Matthew Wood wrote:
> 
> > Hi.  When I try to run the following script it seems that the titles don't
> > fit properly into the small pads that appear above each histogram.  I
> > originally suspected  that this had something to do with not having the
> > truetype fonts.  However, even after downloading these and modifying the
> > the system.rootrc file to include:
> > 
> > Unix.*.Root.TTFontPath:     $(ROOTSYS)/ttf

I've just tried your script, using ROOT 3.03/09 with True Type Font
support, on a Red Hat Linux 7.3 machine, build with `GCC' 2.96-RH -
and the title fits nicely into the paves.

Yours, 

 ___  |  Christian Holm Christensen 
  |_| |	 -------------------------------------------------------------
    | |	 Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|	          DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|	          Denmark                    Office: (+45) 353  25 305
 ____|	 Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
 | |



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET