EXL / NXEngine

A port of the open-source rewrite Cave Story game engine for various platforms. Original author is Caitlin "rogueeve" Shaw, https://nxengine.sourceforge.io/
https://exlmoto.ru/nxengine/
GNU General Public License v3.0
170 stars 35 forks source link

blue fonts #1

Closed arczi84 closed 6 years ago

arczi84 commented 6 years ago

Hi, I made Polish translation base on your code but all polish fonts are blue. I see that rusian are also blue. Any idea how to make them white? I noticed this happens for fonts above 0x7F.

EXL commented 6 years ago

Can you send some screens with blue fonts?

Thanks for reporting.

arczi84 commented 6 years ago

Interesting thing, is that with gcc 6.3 and O2 flag colors are good , but it crash on F3 key( but this could be due to it's WIP).

http://netsurf.baderman.net/cs.bluepng.png

EXL commented 6 years ago

I noticed that on GCC 7.2.0 the project is not build at all

I slightly fixed the code: 7ce8b065

Please try, maybe now the problem is gone.

screenshot_20170910_031806

arczi84 commented 6 years ago

Still blue on gcc 3.4. Only on gcc 6.3 with O2 flag I get white letters but it crash if I go to Options with F3. Do you have gcc 3.4 to try? How about ingame font color?

2017-09-09 22:25 GMT+02:00 EXL notifications@github.com:

I noticed that on GCC 7.2.0 the project is not build at all

I slightly fixed the code: 7ce8b06 https://github.com/EXL/NXEngine/commit/7ce8b065d168b6699c0c58f7f6e6137002af1325

Please try, maybe now the problem is gone.

[image: screenshot_20170910_031806] https://user-images.githubusercontent.com/232116/30243611-bd150108-95d7-11e7-935e-87ba0997e830.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EXL/NXEngine/issues/1#issuecomment-328301469, or mute the thread https://github.com/notifications/unsubscribe-auth/ADV9dn6dwlg4wn_AY2wqwKQLLC-7Vh_Gks5sgvRUgaJpZM4PQ28g .

EXL commented 6 years ago

@arczi84 I tested now on GCC 3.4.6 (i386 arch, Debian etch) and also on GCC 3.4.3 (armv6 arch, MotoMAGX linux) and GCC 3.3.6 (armv5 arch, MotoEZX linux) long time ago...

I didn't have any problems with blue fonts or crashes, all OK in menus and ingame dialogues

Which CPU arch, OS and environment you use? Maybe GCC flag -funsigned-char can help you?

Hmm... can there be some problems with SDL_ttf or Freetype?

screenshot_20170910_083350

screenshot_20170910_083757

arczi84 commented 6 years ago

Hello, I have managed to compile fully working game with proper fonts using gcc 6.3 and O2 flag. I haven't dig more about the problem described.

EXL commented 6 years ago

Ok then.

arczi84 commented 5 years ago

Hello, problem is solved now with help of a much better coder than me :)

char utf8_str[2];

changed to

char utf8_str[2*4];

That's it!

EXL commented 5 years ago

@arczi84 Thanks for the published solution.