Showing special charactes with SGDK

SGDK only sub forum

Moderator: Stef

Post Reply
Manveru
Very interested
Posts: 85
Joined: Wed Sep 05, 2012 3:30 pm

Showing special charactes with SGDK

Post by Manveru » Sun Jan 13, 2013 11:16 pm

Hello guys. I am using SGDK and programming some spanish stuff and i need some special characters like 'ñ'. '¡' or '¿'. How can i show these characters with VDP_drawText? Which characters can i print with VDP_drawText or other function?
Thanks.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

oofwill
Very interested
Posts: 173
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill » Mon Jan 14, 2013 4:48 pm

I'm afraid you'll have to draw your own font...

Or just replace unused characters by your new in memory...

This is the easiest way, to use it with VDP_drawText().

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Mon Jan 14, 2013 4:52 pm

To preserve vram sgdk only use a 96 font characters with the default ascii charset (no accent). You can override the default font with VDP_loadFont(..) but you should look the default font implementation and probably replace some specials characters with yours.

Manveru
Very interested
Posts: 85
Joined: Wed Sep 05, 2012 3:30 pm

Post by Manveru » Mon Jan 14, 2013 6:21 pm

Thanks guys, i will replace some characters i do not need.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

Post Reply