IntelliJ Java IDE
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
 
Threads others viewed
J2ME store an image as a file (local folder)
J2me Application Icon and title bar ImageIcon
Converting Images to Bytes in a J2ME
Dealing with images
Dashed underline Font problem
developer file tools