Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2013

    How to include ttf font in my j2me application ?

    Hi all,

    I need to add .ttf malayalam font in my j2me application. Is it possible to add and set .ttf font ? IF it is possible please tell me how to do that.

    Thanks with Regards
    Deepu George Jacob

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003

    Re: How to include ttf font in my j2me application ?

    It is not possible, I'm afraid. You cannot use any fonts besides system supplied default fonts, or "hand-made" bitmap files á la this wiki article:


    ( On some phones - at least Symbian/S60 based - you can replace/override system fonts with your own, and that'd affect also your app, but at the same time also the whole phone and all other apps, too. This is not something that Nokia has documented well, and resetting the situation may require reformatting the whole phone. And this requires the user to do it, and as a J2ME developer, you can't make your J2ME app do it for the user. Old blog post from 2007 on the subject: http://darlamack.blogs.com/darlamack...ng_fonts_.html ).

  3. #3
    Regular Contributor
    Join Date
    Dec 2012

    Re: How to include ttf font in my j2me application ?

    hi deepu
    There is a blueleaf dictionary.it using malayalam bitmap fonts.

    Why are you choose .ttf for j2me


  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: How to include ttf font in my j2me application ?

    No reason you can't create a custom bitmap font for Malayalam, since the number of individual shapes you need is relatively small.

    There are a couple of rendering challenges that will require some extensions to the code in the wiki article to which petrib refers.

    1. That code renders all characters the same width. At a push, you can get away with this for Latin and Cyrillic (though you wouldn't want to). I doubt you can with Malayalam, so you would need to implement variable width characters.
    2. Latin and Cyrillic are rendered strictly left-to-right. However, some Unicode characters for Malayalam are rendered before, before and after, or below the preceding character. So you need some logic to figure this out, specific to this script form.

    Neither of these are terribly complicated, but there is some work for you to do.


  5. #5
    Registered User
    Join Date
    Mar 2013

    Re: How to include ttf font in my j2me application ?

    Thankyou for valuable informations

Similar Threads

  1. Replies: 0
    Last Post: 2011-01-26, 08:22
  2. How to include yahoo messanger in j2me app
    By j.wawdhane in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2009-09-09, 11:00
  3. Replies: 15
    Last Post: 2008-06-16, 05:24
  4. how to include a standard C++ application?
    By smallfish_ntu in forum Symbian
    Replies: 0
    Last Post: 2003-05-20, 04:17

Posting Permissions

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