Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - chronotrigger21

Pages: [1]
1
Graphics / Re: Displaying non-ascii chars - sf::Font and sf::Text
« on: April 14, 2016, 03:19:40 pm »
Ah! Indeed it wasn't my code at all. The font I was trying to use did not contain those glyphs. I switched to Courier New for now, and all my box-drawing glyphs are showing up correctly.

I would really prefer to use a perfectly square font though... however I'm having a hard time finding one that contains all the box-drawing characters. It seems that most fonts I download only contain the Ascii characters and maybe a few special latin characters. Oh well!

2
Graphics / Displaying non-ascii chars - sf::Font and sf::Text
« on: April 14, 2016, 04:58:49 am »
I want to display non-Ascii characters. (specifically box-drawing characters for a roguelike game - my renderWindow will basically look like a console/terminal to the user; I'm just using SFML behind the scenes because it gives me so much more power)

But I just get boxes or question marks if I try to use a non-ascii character. I have spent hours upon hours poring over every scrap of documentation - sf::Font, sf::Text, Uint32, L"string", wstring, sf::string, ASCII codes, unicode strings... but all I seem to be accomplishing is exasperating myself.

All I want to do is draw some boxes with text! :)  Any advice pointing me in the right direction would be immensely appreciated.

Pages: [1]