use *.bmf bitmap font on LWUIt? - java-me

i make bitmap font with j2mepolish font editor , is it possible to use this bitmap font on LWUIT ?
how ?
thanks

currently there is no support for importing j2mepolish bitmaps into LWUIT.

Related

Using font character as a map icon in KML

In the current project a custom equivalent for Font Awesome is used for all required icons in the web application.
Is it possible to use Font Awesome, or some other font based symbol instead of PNG graphics as a KML icon?

LWUIT bitmap-font not working done?

When I use a bitmap font in lwuit List in emulator and SonyEricsson k510i everythings right but in g900 if font size is bigger than 9 words, is not shown ? please help me to fix this problem ...
When using bitmap font, you have to use different font objects for different screen width.
For Example, if the font size for 240*320 device is 12 means, set font size to 20 for 360*640.
No other solution is available to solve this issue.

How to get LWUIT bitmap font?

I want bitmap font for Form from LWUIT component. I create rs file with bitmap font(that is theme file create by Resource Editor.jar). Then I load that file from my MIDlet with following code...
Then I get Font by, get method("Font 1"); // Font 1 is font name create with LWUIT Editor.
But when i want font from Font object(that from Resource Object) from following code..
Then i get character set from font is ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:!/*()[]{}|#$%^&<>?'"+- "
What's the problem is that? I change many font type but all are return that String.
The string you are listing above is the charset string which indicates the characters supported by the font it is not the font itself. To apply the font use the setFont method of the Graphics or Style classes.

Set the size of text in label in LWUIT j2me

Is there any way to set the size(means font size,i want to make my text larger contaning font size of 17-20) of the text in the label in LWUIT for J2ME.
You can set the large text by two ways.
Use ResourceEdit and Create the new Large Font in Font tab. Then change the Label#Unselected font to that new Large Font.
Use following code,
new Label("Sample").getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_LARGE));
For more info see this article, Using Font with LWUIT

LWUIT : arabic font problem

Hi
how can i add arabic Characters to bitmap font and show in application ? how can i do it on localization section ?
when i use system font it`s shows seprated and reserved on some phones , i want to make bitmap font to show arabic strings correctly on all phones
thanks
you can't, LWUIT doesn't support Arabic bitmap fonts. Which is related to the fact that Arabic language contains different glyph for each character, which didn't considered while developing the bitmap font in LWUIT.

Resources