开发者

How to get LWUIT bitmap font?

开发者 https://www.devze.com 2023-04-01 00:54 出处:网络
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 follo开发者_运维百科win

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 follo开发者_运维百科wing 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号