×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Unhappy Superscript and subscript in J2ME

    How to display mathematical equations (eg. polynomial equations) using j2me(midlet application).Can any one help me out!!!!! and also the squareroot etc......


    Thanks
    Ganga

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Superscript and subscript in J2ME

    Font features on most mobile devices are limited, and in MIDP, there is no support for subscript and superscript.

    Font might contain special characters, such as:

    Code:
    \u00b2    superscript 2
    \u00b3    superscript 3
    So, it might be possible to draw a string like:

    Code:
    String poly = "ax\u00b2 + bx + c";
    as "ax² + bx + c".

    Beyond that, you would really need to start creating an equation-rendering engine, to draw to a Canvas.

    Cheers,
    Graham.

Similar Threads

  1. Subscript problem
    By morjens in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-12-19, 10:24

Posting Permissions

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