Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » umlauts'ä ö ü' with al_draw_text()

This thread is locked; no one can reply to it. rss feed Print
umlauts'ä ö ü' with al_draw_text()
nico_c++
Member #16,940
January 2019

HEY Guys,

Simple question:

I am sitting on a simple Allegro Game, but always, when I draw text, it doesnt project umlauts on the screen.
Can somebody help me with that?

Greetings

Edgar Reynaldo
Member #8,592
May 2007
avatar

Okay, a few things.

1. You have to save your source file as Unicode. Whether that's UTF-8 or something else is okay.

2. Your ttf font has to support those characters.

3. It should work now.

4. If not, try using unicode literals in your code.

nico_c++
Member #16,940
January 2019

Allright, thanks, I didnt thought of the ttf having umlauts.
I will download another!

Edgar Reynaldo
Member #8,592
May 2007
avatar

If you still can't get it to work, post your font and your source code.

Go to: