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 

Bitmap font class

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



Joined: 19 Dec 2005
Posts: 15

PostPosted: Thu Jan 19, 2006 1:45 am    Post subject: Bitmap font class Reply with quote

Hello everybody, I've made a little class to manage bitmap fonts

First of all I want to thanks Jenay and Lumo for the work they provide to us, and this class is strongly inspired by their works.

With this class you can :

  • use a single image to manage diffent fonts of the same size(this is the charSet parameters of the print and printEx functions).
  • manage text aligment (0 means left align, 1 means center align and 2 means right align).
  • manage clipping region.
  • manage multi-lines text (with a \n in your text you make a newline)


Download BitmapFont.zip
View screenshot

PS : the zip contains a sample code.
_________________
_________________________________________________________
Do you want some LUA Scripts ?
Go here
Back to top
View user's profile Send private message Visit poster's website
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Thu Jan 19, 2006 3:00 am    Post subject: Reply with quote

nices stuff!
keep it up :)

greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
Ferrero



Joined: 19 Dec 2005
Posts: 15

PostPosted: Thu Jan 19, 2006 5:09 am    Post subject: Reply with quote

Thanks
_________________
_________________________________________________________
Do you want some LUA Scripts ?
Go here
Back to top
View user's profile Send private message Visit poster's website
illfoundedmind



Joined: 24 Nov 2005
Posts: 22
Location: N/A

PostPosted: Thu Jan 19, 2006 10:06 am    Post subject: Reply with quote

Did you say... right ALIGN!!!! yes! need to check this one out
_________________
illfoundedmind Production Studio
Back to top
View user's profile Send private message Visit poster's website
Ferrero



Joined: 19 Dec 2005
Posts: 15

PostPosted: Thu Jan 19, 2006 6:22 pm    Post subject: Reply with quote

illfoundedmind you can freely use this class or modify it, just put some credits on your game (I've checked your site and it looks promising).
_________________
_________________________________________________________
Do you want some LUA Scripts ?
Go here
Back to top
View user's profile Send private message Visit poster's website
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