How do i can put accent mark in words on allegro 5?
Ailton Silva

Hello folks!

I have a little problem, in allegro 4 we had a function called "set_uformat" and using it we could draw words with accent mark, but i did not found a similar function in allegro 5; I'd like to draw words like: Olá, Opções, Pão, Pôr, etc....
So, How do i can put accent mark in words on allegro 5???

Thomas Fjellstrom

So, How do i can put accent mark in words on allegro 5???

Use UTF8, and a unicode font.

Matthew Leverton

Make sure you save your source code or text files with UTF-8 encoding. If you do that, it should just work (assuming the font has those characters).

Ailton Silva

worked after converting my .cpp files to UTF-8
Thnaks a lot :)

Thread #608419. Printed from Allegro.cc