Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blue fonts #1

Closed
arczi84 opened this issue Sep 8, 2017 · 9 comments
Closed

blue fonts #1

arczi84 opened this issue Sep 8, 2017 · 9 comments

Comments

@arczi84
Copy link

arczi84 commented Sep 8, 2017

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
Copy link
Owner

EXL commented Sep 9, 2017

Can you send some screens with blue fonts?

Thanks for reporting.

@arczi84
Copy link
Author

arczi84 commented Sep 9, 2017 via email

@EXL
Copy link
Owner

EXL commented Sep 9, 2017

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

I slightly fixed the code: 7ce8b06

Please try, maybe now the problem is gone.

screenshot_20170910_031806

@arczi84
Copy link
Author

arczi84 commented Sep 9, 2017 via email

@EXL
Copy link
Owner

EXL commented Sep 10, 2017

@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
Copy link
Author

arczi84 commented Aug 22, 2018

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
Copy link
Owner

EXL commented Aug 22, 2018

Ok then.

@EXL EXL closed this as completed Aug 22, 2018
@arczi84
Copy link
Author

arczi84 commented Dec 6, 2018

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
Copy link
Owner

EXL commented Dec 6, 2018

@arczi84 Thanks for the published solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants