the Russian language in Panda (using Unicode)

I would like to show how easy it is to use Unicode characters in Panda3D. Since I am Russian, the example is in Russian too :slight_smile:
Since Panda’s default font (Nimbus Sans L Regular Condensed) doesn’t support Russian letters, first of all, specify the required font in the code ( For this snippet, I have placed it into the same folder with the source code.
Now, learn this snippet:

from direct.gui.OnscreenText import OnscreenText
text = 'Panda3D - РуÑ

yeah python unicode support is one of the best i think.

And we all guessed that you are russian because you have shurik as your avatar.

If you want to use Russian letters not in main window but in its header as window title, you should also encode the string:

windowTitle = u’РуÑ