Opened 7 years ago
Closed 7 years ago
#54367 closed defect (fixed)
ROOT 6.10 cannot find symbol.ttf
Reported by: | hansgans | Owned by: | cjones051073 (Chris Jones) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | root6 |
Description
Since updating the root6 port some days ago (I think from @6.08) I encountered the problem that the font symbol.ttf is not found. This is necessary if you use for example greek math letters in a TCanvas. The exact error message when opening an existing TCanvas with such symbols is:
Error in <FontCache::SelectSymbolFont>: symbol.ttf file not found Error in <TSystem::ExpandFileName>: input: $ROOTSYS/fonts/symbol.ttf, output: $ROOTSYS/fonts/symbol.ttf
I figured out that in /opt/local/libexec/root6/etc/system.rootrc
the following lines are commented out:
#*.*.Root.TTFontPath: /opt/local/libexec/root6/share/root/fonts #Unix.*.Gui.IconPath: .:$(HOME)/icons:/opt/local/libexec/root6/share/root/icons:
Commenting it those lines in or adding them ~/.rootrc, solves the issue (the second line solves another issues when the ROOT tray icon is not found). Now I'm not completely sure if this an issue for the ROOT Team or an issue of the MacPort. But since ROOT is not shipped with a file system.rootrc I guess it is an issue of the port.
Change History (5)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | mojca added |
---|---|
Owner: | set to cjones051073 |
Port: | @6.10.00 removed |
Status: | new → assigned |
comment:2 Changed 7 years ago by cjones051073 (Chris Jones)
The port does not do anything specific w.r.t. the global system.rootrc so if this is now an issue with 6.10.00 and was not before, this to me looks like an issue with ROOT upstream. Please follow up with the experts there to get their opinion. For sure, I could add a patch to manually uncomment the above lines, but before I do that I would like to understand why this is an issue now, and was not before.
Also, please provide some basic steps to reproduce the two issues you mention, as I do not see them myself with my (basic) workflows.
comment:3 Changed 7 years ago by cjones051073 (Chris Jones)
I've submitted an update (as revision 2 of 6.10.00) which uncomments the two lines you suggest in the system rootrc file. I still maintain this looks like an upstream issue to me. Please follow up with them. This I think is an OK workaround for the time being.
comment:4 Changed 7 years ago by hansgans
Thanks! Your fix works for me. I filled a bug report: ROOT-8864 (https://sft.its.cern.ch/jira/browse/ROOT-8864)
comment:5 Changed 7 years ago by cjones051073 (Chris Jones)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In the future, please Cc the port maintainers (
port info --maintainers root6
), if any.