How to display text in unicode?


#1

How to display text in unicode?
And if I need to display texts in different languages?

I tried it in the example of the GUI - it does not work:
HStringTable stringTable = StringTable::create();
stringTable->setString("_myStringId", Language::EnglishUS, “Hello!”);
stringTable->setString("_myStringId", Language::Russian, “Привет!”);
gStringTableManager().setTable(0, stringTable);
gStringTableManager().setActiveLanguage(Language::Russian);

%D0%91%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B9


#2

The default Font used only imports ASCII characters. You need to import your font using the required character ranges, as described in http://docs.bsframework.io/latest/importing_fonts.html . You then need to set up a GUISkin with styles that reference the imported font, and use those styles on the GUI elements.