| View previous topic :: View next topic |
| Author |
Message |
daaa57150
Joined: 17 Nov 2006 Posts: 28
|
Posted: Fri Nov 17, 2006 10:47 pm Post subject: drawing characters with accents |
|
|
Hi,
I'm new to Lua in general and I wish to develop a game for the psp.
My first pb is when I try to write characters with accents on screen (I'm french, so I'd like to write éèàê and so on).
So I'm using that code:
| Code: | | screen:print(150,150,"é") |
and all it does is printing 2 little vertical lines.
I tested different things without success (using fonts, replacing with the \ddd notation etc), so I thought I would come here and ask. If this cannot be done I would know it in no time...
Thanks. |
|
| Back to top |
|
 |
andyauff
Joined: 27 Jan 2007 Posts: 2
|
Posted: Sun Jan 28, 2007 12:16 am Post subject: same |
|
|
| I would like to know the same thing. |
|
| Back to top |
|
 |
cools
Joined: 04 Mar 2006 Posts: 46
|
Posted: Tue Jan 30, 2007 12:22 pm Post subject: |
|
|
| Hmm... If you load a true type font that supports the characters needed, it might let you use the other characters like "é". If that doesn't work, you could try using a bitmap font that supports characters like "é". (Bitmap font will be a little harder) |
|
| Back to top |
|
 |
andyauff
Joined: 27 Jan 2007 Posts: 2
|
Posted: Tue Jan 30, 2007 12:50 pm Post subject: |
|
|
| I've settled on typing up my text in paint and blitting the image; it works better for me for more than one reason as far as my app is concerned. |
|
| Back to top |
|
 |
daaa57150
Joined: 17 Nov 2006 Posts: 28
|
Posted: Thu Apr 19, 2007 6:18 pm Post subject: |
|
|
| Don't know if people are still interested in this, but I'm working on that problem using "Bitmap Font Builder". I'm developping a lib in Lua to recognize those characters and generate a bitmap of the text for you to blit. I'm just afraid this will be slow I don't know. |
|
| Back to top |
|
 |
|