Set text size in shortcut in LWUIT j2me

Is there a way to set the size (e.g. font size, I want to make my text a larger font size 17-20) of the text on the shortcut in LWUIT for J2ME.

+4
source share
1 answer

You can set large text in two ways.

  • Use ResourceEdit and create the tab "Large font in font." Then change the font Label # Unselected to this new large font.
  • Use the following code,

new Label("Sample").getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_LARGE));

See this article for more information. Using a font with LWUIT

+8
source

All Articles