• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Font in J2ME

Man Ip
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!