I had used code and modify it from this link-
panda3d.etc.cmu.edu/phpbb2/viewtopic.php?t=555
vvv------------------
import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.gui.OnscreenText import OnscreenText
import codecs
class World(DirectObject):
def init(self):
font = loader.loadFont(‘kaiu.ttf’) # my window2000 Chinese font
text = TextNode(‘node name’)
text.setFont(font)
text.setEncoding(TextNode.EUtf8)
ustr = u’\ua4e5’ # one Traditional Chinese character
text.setText(codecs.utf_8_encode(ustr)[0])
textNodePath = aspect2d.attachNewNode(text)
textNodePath.setScale(0.07)
w = World()
run()
^^^------------------
but I got this error
vvv------------------
:text(warning): No definition in DFKai-SB Regular for Character 42213
^^^------------------
And Panda3d didn’t display correct “Chinese character”.
If panda3d-1.3.2 doesn’t support “Traditional Chinese” range ?