this is a pretty weird (though certainly minor) issue I am getting, which regards fonts in a canvas plot: axes titles, labels, stats, legend etc…
I have two installations of ROOT 5.28.00c in the same cluster. Whit installation-1 I get normal fonts, just like the examples in ROOT guide. Whereas with installation-2 I get very weird italics fonts, which cannot be changed neither in type not in size. Moreover, special characters such as greek letters are printed in latin, thus e.g. #nu gives “n”. You can see this in the figure attached (notice that the editor says helvetica bold, but the y-title does not look helvetica).
This thing is annoying because those fonts are ugly and cannot be edited in any way.
The environment looks identical in the two cases, except for the ROOT related stuff in ROOTSYS, LD_LIBRARY_PATH and PYTHONPATH.
For what regards the binaries, I would say that installation 1-good has been installed using binaries (it’s a common installation in my group in cc-lyon), whereas installation 2-bad was compiled by me with these config options: -disable-castor --disable-fftw3 --disable-rfio --enable-roofit (actually I need it in order to use roofit).
For what regards the common installation:
root-config --prefix : /afs/in2p3.fr/throng/km3net/i3-tools/var/db/dports/software/root_5.28.00c/5.28.00c_0/afs/in2p3.fr/throng/km3net/i3-tools/root-v5.28.00c
One more question.
Before running “configure” (and then “make”), did you make sure that nothing in your shell’s environment points to another ROOT version? In particular did you “unset ROOTSYS”?
P.S. See [url=https://root-forum.cern.ch/t/missing-canvas/17664/17 old notes about building ROOT[/url] and [url=https://root-forum.cern.ch/t/trouble-installing/18046/11 of my old examples[/url].
Did you also run “configure” twice?
Note: you should run “make distclean” or maybe better “make maintainer-clean” before the new “configure” step and If you use “–prefix” then “unset ROOTSYS” first.
BTW. For both your ROOT installations, you could also compare the output of:
root-config --config
root-config --features
make maintainer-clean
unsetenv ROOTSYS
./configure (same options as above)
make -j2
make install
I also checked the features and config options, indeed there are differences, but I don’t know what they mean. I’ll try to compile using the same options, later on. I’ll let you know.
Well, my idea was that you post the output of “–config” and “–features” here so that we can have a look at them (in particular I would check if the “xft” feature was enabled).
Another idea … compare the contents of the “root-config --etcdir/system.rootrc” files for both installations … and if the “xft” feature was enabled by configure, change “X11.UseXft:” to “yes” (the default is unfortunately “no”).
Yet another idea … can it be that you have “${HOME}/.rootrc” and/or “./.rootrc” and/or “./rootlogon.C” files (they may contain installation specific modifications which are valid for one of them only)?
Well, I can see no problem in the output.
I think you could add “–enable-minuit2 --enable-soversion” to your configure line.
You do have “xft”, so try to modify your “root-config --etcdir/system.rootrc” file (change “X11.UseXft:” to “yes”, no need to recompile ROOT afterwards, just run “root” again).