eng-rus localizatios #4037
Replies: 2 comments
-
It is not clear what you are trying to do here. If you want to render russian text - see fonts documentation. If you are trying to convert source code to russian - no compiler would accept that because it is against C++ spec. |
Beta Was this translation helpful? Give feedback.
-
Hi, Google's NOTO fonts can be downloaded from https://www.google.com/get/noto/help/install/ as one big zip file. Use something like io.Fonts->AddFontFromFileTTF("/coderoot/bluetree/egui/fonts/NotoSansDisplay-Regular.ttf", 20.0f, NULL, io.Fonts->GetGlyphRangesCyrillic()); to load the Cyrillic glyphs to ImGui (latin ones are loaded by default). If Russian string literals are needed within C/C++ code, portable way is to code these as escape sequences: Tool to convert Unicode text (Chinese, Russian, etc.) to C escape sequences: https://onlineunicodetools.com/escape-unicode |
Beta Was this translation helpful? Give feedback.
-
I have a question for you: can I use Russian in your ImGui development and how can I do it?
The GUI breaks when trying to change some function values from English to Russian (keyboard key values). I tried to change the encoding inside the source code, but it didn't give me any results.
the SETLOCALE function also did not give the expected result, although it is intended for such localization.
this pops up during compilation after changing Latin characters to Cyrillic
the Internet says that utf-8, which you use, supports Cyrillic, but, in fact, it turns out that it does not
I hope you can help with some advice
Beta Was this translation helpful? Give feedback.
All reactions