Description
cuneiform, e.g. π is cool and I would like to use it in panda. Unfortunately, something with the font loading or rendering or something else goes wrong, so that even a font that should support it, doesn't display the symbol correctly.
So the code below should display "hello [2x strange box for missing character] world" instead of "hello π world"
Needs a font to display the symbol, to be loaded, I used this one:
https://fonts.google.com/noto/specimen/Noto+Sans+Cuneiform
Steps to Reproduce
from direct.showbase import ShowBase
from panda3d.core import TextNode
class Wrapper:
def __init__(self):
self.b = ShowBase.ShowBase()
tl = TextNode("name")
position=(0,0,0)
font=self.b.loader.loadFont('NotoSansCuneiform-Regular.ttf')
font.setPixelsPerUnit(150)
tl.setFont(font)
font = tl.getFont()
font.clear()
tl.set_text("hello π there ")
textNodePath = aspect2d.attachNewNode(tl)
textNodePath.setScale(0.05)
textNodePath.setPos(position)
def main():
W = Wrapper()
while True:
W.b.taskMgr.step()
if __name__=="__main__":
main()
Environment
- Operating system: Windows 10
- System architecture: 64
- Panda3D version: 1.10.13
- Installation method: sdk
- Python version (if using Python): 3.8.2
- Compiler (if using C++):
Description
cuneiform, e.g. π is cool and I would like to use it in panda. Unfortunately, something with the font loading or rendering or something else goes wrong, so that even a font that should support it, doesn't display the symbol correctly.
So the code below should display "hello [2x strange box for missing character] world" instead of "hello π world"
Needs a font to display the symbol, to be loaded, I used this one:
https://fonts.google.com/noto/specimen/Noto+Sans+Cuneiform
Steps to Reproduce
Environment