hi ! Everybody
I had some problem.
I could used Asian language in TextNode or Onscreentext. But I couldn’t used DirectEntry for Asian languages.I doubted about DirectEntry support Asian languages ?
I changed entryFont in DirectEntry.I used appropriate font but it wasn’t support.
I tried used TextEncoder but it wasn’t work again.
in your Config.prc file. Then when you call entry.get(), it should return a Python unicode string if the user has entered non-ASCII characters.
You can also see this thread, which is somewhat out of date (we have added support for Python unicode strings since this thread was written, so while the code in the thread still works, you don’t need to mess with the Python default encoding any more). https://discourse.panda3d.org/viewtopic.php?t=555
i basically had the same problem as you did. from what i remember. panda has no problem with unicode input in direct entry. on my linux machine it worked out of the box once i set right text encoding. on windows things seems a little bit more difficult but still doable. i didnt try it but drwr seems to know about
I don’t know why the text-default-font variable isn’t working for you; it seems to work for me. But another way to do the same thing is with code like this:
So that you explicitly specify the font at the time you create the DirectEntry. (The … stands for the other constructor parameters you would pass to the DirectEntry.)