Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:52, 25 September 2007.

How to use custom fonts in Java ME

From Forum Nokia Wiki

You know that if you are working in Canvas mode in MIDP applications, you can draw text on any position on the screen, based on the system fonts installed on the phone.

But, you see some games and applications that uses some other cool fonts in their applications. How we can do this?

The solution is to use a bitmap-font solution. That is a large PNG file (or other graphic format) that have every character designed as an image. Then, you just have to read that image file and clip every character in another image. Then, to write a sentence, just read every character and draw it one after the other.

Great sample on this feature is hosted on http://developers.sun.com/techtopics/mobility/midp/articles/termemulator3

Related Discussions
Thread Thread Starter Forum Replies Last Post
How to use gdr font ? atchariya Symbian User Interface 1 2003-12-04 20:13
Need to read Chiese SMS/TXT bug13@163.com General Messaging 7 2007-11-20 18:13
Can I install fonts on my phone? john004 Mobile Java General 1 2004-06-05 14:49
Rotated fonts salesh General Symbian C++ 1 2007-11-28 10:16
Problem on running UI Control Framework example code woon66 General Symbian C++ 0 2003-07-23 14:41
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX