Topic: letters that do not belong to English are incorrectly in a MOText,

when I asingo a text string with a MOText setText object symbols that non-English language are displayed incorrectly, for example "Ñ U" and the like. ¿I can fix this display? I have noticed that the editor no problem any.

Help me please!! :"(

Last edited by ArielRiv (2016-08-16 09:00:40)

Re: letters that do not belong to English are incorrectly in a MOText,

What text editor are you using ?
If you are using Microsoft visual c++, be sure that your cpp file is saved in UFT-8.
In visual studio, go to File > Advanced Save Options > Unicode (UTF-8 without signature)

Re: letters that do not belong to English are incorrectly in a MOText,

I use Netbeans on Linux, and the encoding of my project is UTF-8, yet the problem persists, I have compiled a number of ways including using scons and the problem persists.

Last edited by ArielRiv (2016-08-19 20:29:59)

Re: letters that do not belong to English are incorrectly in a MOText,

It works with Maratis-4 (I checked): https://github.com/anael-seghezzi/Maratis-4

Re: letters that do not belong to English are incorrectly in a MOText,

I guess in maratis 4 The problem has been solved but let me tell you what I have discovered: from the character with hex code \ x07E two characters are needed to represent each character that follows, ie \ x0C2 \ x0A3 together represent £ but separate account other characters.

MOText.cpp line in each individual character 247 is separated and searches and their meaning, so the display characters are incorrect.

I will review Maratis 4

Re: letters that do not belong to English are incorrectly in a MOText,

Now if you want to enable UTF-8 with Maratis-3 it's going to be a bit complicated. The only way is to update Maratis-3 source code with some part of Maratis-4 source.

First, you need to update "MFreetypeLoader.cpp" : https://github.com/anael-seghezzi/Marat … Loader.cpp

Then you need this to decode UTF-8 : https://github.com/anael-seghezzi/Marat … tinyutf8.h

You need to update "MStandardRenderer::drawText" with the one found here : https://github.com/anael-seghezzi/Marat … nderer.cpp

Re: letters that do not belong to English are incorrectly in a MOText,

I just try maratis 4 and there is no problem in this respect smile
You could carry my project Maratis4? Or even missing work to be used by a user? I clarify that do not need the editor, but compile my project as in the example "ManualUse"

Last edited by ArielRiv (2016-08-19 23:05:47)

Re: letters that do not belong to English are incorrectly in a MOText,

You could carry my project Maratis4? Or even missing work to be used by a user?

I'm sorry I don't understand what you mean ?

If you don't need the editor, your code should be mostly retro-compatible.
Only some things are still unfinished, the sound contexts and lua are still not plugged (though this part is the same code as M3).

Re: letters that do not belong to English are incorrectly in a MOText,

sorry, my English is very low.
I manually using the code maratis not use the publisher nor the lua api, I schedule everything in C ++