forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

drawing characters with accents

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
daaa57150



Joined: 17 Nov 2006
Posts: 28

PostPosted: Fri Nov 17, 2006 10:47 pm    Post subject: drawing characters with accents Reply with quote

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
View user's profile Send private message
andyauff



Joined: 27 Jan 2007
Posts: 2

PostPosted: Sun Jan 28, 2007 12:16 am    Post subject: same Reply with quote

I would like to know the same thing.
Back to top
View user's profile Send private message
cools



Joined: 04 Mar 2006
Posts: 46

PostPosted: Tue Jan 30, 2007 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
andyauff



Joined: 27 Jan 2007
Posts: 2

PostPosted: Tue Jan 30, 2007 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
daaa57150



Joined: 17 Nov 2006
Posts: 28

PostPosted: Thu Apr 19, 2007 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group