Cyrillic Symbols

Started by Danetta, 03 December 2016, 16:36:31

Danetta

Hello.
I tried to use cyrillic symbols in EditBox->setDefaultText property, but obviously there are some code page issues.
Is there any way to use cyrillic symbols?

https://puu.sh/sCQmm/534a405c30.png

texus

You need to have a font that supports these symbols, the default font that ships with tgui probably doesn't have them. You can use the setFont function on the widget or the gui to change which font you use.

Danetta

Which one used by tgui by default?
I found only DejaVuSans inside the folder, but it seems like it does support these characters.

texus

TGUI has the DroidSerif-Regular font build-in so that you don't need to load any external files to get some text on the screen. Adding the font in the library makes the library file bigger which is why I chose this small font.
The DejaVuSans font is still there from before there was a build-in font, I just never removed it.