You are not logged in.

#1 2010-08-03 15:46:45

marc_max
Member

[RESOLVED] Accents with PrintfTTF?

I'm spanish and we usually use accents in letters: , , ... And other special characters like .

However, when trying to show them using a TTF font on GRRLIB there are problems. If the string contains any of these special characters it compiles correctly. But when you test it (on emulator or the Wii console) the string is truncated where the first special character was on that string.

Is there any solution for this?

Offline

 

#2 2010-08-03 15:58:25

Crayon
Bad Mother Fucker

Re: [RESOLVED] Accents with PrintfTTF?

Hi, instead of GRRLIB_PrintfTTF use GRRLIB_PrintfTTFW. It uses wide character with wchar_t.

Offline

 

#3 2010-08-03 23:24:02

marc_max
Member

Re: [RESOLVED] Accents with PrintfTTF?

Thank you.

At first it seemed to fail at compile. Main problem seems to be the document charset, because if I create a wide character string L"example " it could not compile because the compiler couldn't identify that character.

Anyway, I discovered this can be solved by parsing that character in octal. For example L"example \341" works perfectly.

Offline

 

Board footer

Powered by FluxBB