Post Sunday, 6th September 2015, 18:48

Any multibyte character support?

Greetings to everyone, recently I looked through the sourcecode and noticed that you have a bit of Unicode support (unicode.h). But when I looked through menu building functions in I saw something like
max_coord.x = min_coord.x + text.size();

But "text" variable has a string type and string::size() returns the number of bytes string has, not the actual number of displayed symbols! For English text it's okay, but if you have any plans to add localization support (found some translations in dat directory), it would be a problem.

I know it would be a difficult task to overwrite existing code, but I suggest you to add some encoding-safe stuff in next versions.