Font issue in Fedora

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_11.3.0
_Operating System:_Fedora 41
_Compiler/Version:_14.2.1
_CMake Version:_3.30.5

When I run an example simulation, the visualization windows appears with no text on it. And in the terminal, there are errors about missing fonts (see below). Has anyone seen this and how to deal with it? Thanks!

/vis/open OGL 600x600-0+0
/vis/sceneHandler/create OGL
Default graphics system is: OGL (based on build flags).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use “vis/open” without parameters to get these defaults.
/vis/viewer/create ! ! 600x600-0+0
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–10-100-75-75-m-60-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–11-80-100-100-m-60-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–12-120-75-75-m-70-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–14-100-100-100-m-90-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–17-120-100-100-m-100-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–18-180-75-75-m-110-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–20-140-100-100-m-110-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–24-240-75-75-m-150-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–25-180-100-100-m-150-iso8859-1
G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
-adobe-courier-bold-r-normal–34-240-100-100-m-200-iso8859-1
/vis/viewer/refresh


Hmmm. Seems Fedora doesn’t come with these fonts. You could:

  • try to find some fonts for Fedora and install them;
  • try ToolsSG (/vis/open TSG);
  • install Qt and build with that (GEANT4_USE_QT=ON and GEANT4_USE_QT_QT6=ON).

Tell us how it goes.

John