开发者

How to use Different font for LabelField like Arial,TimesNewRoman in BlackBerry

开发者 https://www.devze.com 2023-01-11 21:00 出处:网络
Hi friends I am using LabelFields to display text message in a screen i want different fonts each LabelField but when i am using api fonts of blackberry using

Hi friends I am using LabelFields to display text message in a screen i want different fonts each LabelField but when i am using api fonts of blackberry using

FontFamily fontFamily[] = FontFamily.getFo开发者_开发百科ntFamilies(); Font font2 = fontFamily[0].getFont(FontFamily.SFF4_FONT,18);

is showing bold style how to use different font styles plz help me


try this

 FontFamily alphaSerifFamily = FontFamily.forName("BBAlpha Serif"); 
 Font appFont = alphaSerifFamily.getFont(Font.PLAIN,7,Ui.UNITS_pt);

 LabelField lb = new LabelField("Test");
 lb.setFont(appFont);
0

精彩评论

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

关注公众号