• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME Query

 
Sameer Deshpande
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All
I have written some code to set the Defualt font for my Mobile Application :
I am going to set a Font as a Desualt Font and use the Same , for my Mobile , the problem is the Emulator is unable to Set the Font as I Require , my Question How to set our own font as default is there any Chace , I have wriiten the Code in the J2ME . (Its Pure Mobile application )
Thanks in Advance
"Sujjestion Accepted "
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sameer,
You haven't mentioned which emulator you are using. If you are using the J2ME Wireless Toolkit by Sun, then you can set the font properties for the default emulator by modifying the device properties files. For more info on this you can refer to the Basic Customization Guide which come along with the J2ME Wireless Toolkit package.
If you are looking at modifying or setting the default font for your application during run time,i.e from within your application itself, then you might have a look at the MIDP API 1.0 docs. Define and create your own canvas and use the javax.microedition.lcdui.Graphics class setFont method to set the font for your application.
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and don't think that font you will finaly see on one of emulators will be the same on second
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic