File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Setting Font in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Setting Font in J2ME" Watch "Setting Font in J2ME" New topic
Author

Setting Font in J2ME

Man Ip
Greenhorn

Joined: Jan 09, 2001
Posts: 4
According to the definition of Font class in J2ME, Font cannot be created. Insteads, it is provided by the system based on requested font attributes.
How to set font attributes in J2ME? I know STYLE_BOLD, SIZE_MEDIUM, FACE_MONOSPACE, ...... but how to use them, as there is no Font constructor in J2ME? Is there a method similar to image --- Image i = Image.CreateImage(...); ?
Please reply me with example. Thanks a lot.
 
 
subject: Setting Font in J2ME
 
developer file tools