How get fonts installed or supportd in mobile using getProperty - java me

Posted by Basit on Stack Overflow See other posts from Stack Overflow or by Basit
Published on 2010-06-01T07:06:14Z Indexed on 2010/06/01 7:13 UTC
Read the original article Hit count: 317

Filed under:

Hi, Hope you all will be fine. Can any one tell me how can i get the fonts installed or supported in the mobile. And suppose urdu font supported by the mobile then i set a condition like this.

[code]

import java.lang.*;

String  value;
String  key = "microedition.font"; // not real need value it's just to show what i want

value   = System.getProperty( key );

    If (value == urdu){
        txtArea2.getStyle.setFont(value);
    } else {
      System.out.println("Urdu not supported);
      }

[/code]

is it possible to do something like this.

Thank you.

© Stack Overflow or respective owner

Related posts about java-me