Problem with rendering of fonts

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.2
Operating System: Ubuntu 22.04
Compiler/Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CMake Version: 3.22.1


Hello!

I have a problem with rendering of fonts on the interactive display of the detector geometry with a program that I wrote some years ago. When I run exampleB1 the fonts are rendered correctly. In both cases I use this command to open the display:

/vis/open

See the attached files below. I have compared the files vis.mac used when running the two programs and also tried to if there is something in the source code of my program that could lead to the bad font rendering, but I could not solve the problem.

Screenshot with my program:

Screenshot with exampleB1:

Johan

Hello!

I found that this command in vis.mac leads to the bad rendering of the fonts:

/vis/viewer/set/edge true

For now, I will just skip that command. If someone knows how to get good font rendering with that command, please let me know.

Johan

Hi Johan

You do seem to have found a bug in the OpenGL viewer. Thanks, we will look into it.

Please try the ToolsSG viewer, /vis/open TSG. I think you will find it more reliable for edges and text.

John

Hi John!

Thanks for your reply and sorry for my late reply. I tried TSG and it renders the fonts correctly with the command ‘/vis/viewer/set/edge true’.

Johan

Ok, Great! Thanks fro getting back.

We are planning to transition to TSG as the default viewer from the next release, so your feedback is very useful. Thank you.

John