raylib: Unicode UTF8 dont displayed correctly
In continuation of the issue: https://github.com/raysan5/raylib/issues/2022
If I understood correctly from this “issue”, then the code:
std::string string_ = u8"Comença a jugar çà";
DrawText(&string_[0], rec.x + 10, rec.y + 60, 60, BLACK);
Should be displayed on the raylib window without any problems - and it is, everything is displayed perfectly.
BUT, this code does not want to be displayed correctly:
string_ = u8"Click me!东东2";
DrawText(&string_[0], rec.x + 10, rec.y + 10, 60, BLACK);
Please tell me - why?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (11 by maintainers)
I can, I already said.
The fonts that are in the examples work. But firstly, they do not work by default. And secondly - they work, My apologies, but they work through the ass.
The fonts that are in the examples work. But firstly, they do not work by default. And secondly - they work, my changes, but they work through the ass.
Therefore, we can say that raylib does not, in fact, support the output of Unicode text, or it does, but with very complex manipulations.
That is, you cannot receive, for example, an array of bytes encoded for example UTF8 from the server and display it in the window. And this is a fact.