custom fonts

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

custom fonts

Postby deepak_evil » Fri Sep 21, 2007 6:15 am

i would like to know how do i use custom fonts in my application i know it done by using font mage sprite but whats the trick how we do it i am not able to understand
Posts: 37
Joined: Thu Aug 16, 2007 6:27 am

Postby DevelopmentTeam » Fri Sep 21, 2007 6:57 am

prepare an PNG Image which has all the alphabets in a row, keep them in equvidistant, so that you can use it as a sprite. Then when you have to display each charecter on the screen you need to set the correct frame to the sprite and paint it. for writing a string you need to write a subroutine to display each charecter.
User avatar
Site Admin
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 1 guest