Cyrillic Symbols
« on: 03 December 2016, 16:36:31 »
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

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Cyrillic Symbols
« Reply #1 on: 03 December 2016, 17:17:28 »
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.

Re: Cyrillic Symbols
« Reply #2 on: 03 December 2016, 20:49:19 »
Which one used by tgui by default?
I found only DejaVuSans inside the folder, but it seems like it does support these characters.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Cyrillic Symbols
« Reply #3 on: 03 December 2016, 22:48:26 »
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.