×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    68

    how to create customize fonts in j2me

    hi all,

    I want to create customize font for my application, any idea how to create it? Also I want to use the same fonts in xml file.









    Thanks in advance,
    Prashant

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: how to create customize fonts in j2me

    Which control you are using ? If you are using control like form then it is not possible. If you want to do on canvas then there is a way.

  3. #3
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: how to create customize fonts in j2me

    You should have created this thread in "Mobile Java Media (Graphics & Sounds)" forum

    Anywayz, you can either draw the font on Canvas or you can use image fonts in which you just put an image for a letter.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: how to create customize fonts in j2me

    Hi Prashant,

    if you want to use your own own fonts in a Java ME application, only solution is to use bitmap fonts (that is: fonts rendered with images). As stated on previous replies, this approach only works when using Canvas interfaces, and not high-level ones (e.g.: Lists, Forms).

    You can find useful infos on these pages:

    http://devlinslab.blogspot.com/2007/...onts-part.html
    http://devlinslab.blogspot.com/2007/...resources.html

    Note also that some Java ME UI frameworks (like J2mePolish) already support bitmap fonts, so when using them you do not need to manually implement them.

    Pit

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    182

    Re: how to create customize fonts in j2me

    Hi,

    You can do as Pit mentioned.
    Also, there is a opensource toolkit called MWT. you can use that
    please visit the following link
    http://j2me-mwt.sourceforge.net/tutorial.html please see examples from 11 to 13

    thanks and regards
    suni

  6. #6
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: how to create customize fonts in j2me

    btw please keep in mind that xml is actually just a data container so its not used to format stuff, i guess u would have to look into xslt to transform the xml data into a graphical representation/webpage....

Similar Threads

  1. How to create chat server and chat client using J2ME....
    By mapetos in forum Mobile Java General
    Replies: 24
    Last Post: 2011-08-08, 13:19
  2. FONTS IN J2ME
    By pablovara in forum Mobile Java General
    Replies: 4
    Last Post: 2008-11-26, 06:58
  3. How to create Drop down list in J2ME
    By jas127 in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-24, 22:55
  4. how to create the commands in j2me
    By balaji2003 in forum Mobile Java General
    Replies: 4
    Last Post: 2003-07-25, 05:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×