I’m new to Panda3D and I have an issue with the DirectOptionMenu. When i use a custom font, only the selected entry is drawn with the font. The others entries still use the system standard font. Here is my
from direct.showbase.ShowBase import ShowBase from direct.gui.DirectGui import DirectOptionMenu base = ShowBase() font_ka1 = base.loader.loadFont('ka1.ttf') menu = DirectOptionMenu(scale=0.1,items=["item1","item2","item3"],text_font=font_ka1) base.run()
I’ve read a lot of code snippets but still couldn’t figure how to make it work.
Thanks for your help.