drawing characters with accents

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
daaa57150
Posts: 28
Joined: Fri Nov 17, 2006 10:35 pm

drawing characters with accents

Post by daaa57150 »

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: Select all

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.
andyauff
Posts: 2
Joined: Sat Jan 27, 2007 9:25 am

same

Post by andyauff »

I would like to know the same thing.
cools
Posts: 46
Joined: Sat Mar 04, 2006 12:57 pm

Post by cools »

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)
andyauff
Posts: 2
Joined: Sat Jan 27, 2007 9:25 am

Post by andyauff »

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.
daaa57150
Posts: 28
Joined: Fri Nov 17, 2006 10:35 pm

Post by daaa57150 »

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.
Post Reply