开发者

How can I see a list of fonts available in my blackberry?

Right now I'm setting a font to my applicatio开发者_运维问答n, but I was just following an example. How can I know what fonts I have available to me?

FontFamily alphaSansFamily;
try {
    alphaSansFamily = FontFamily.forName("BBAlpha Serif");
    Font appFont = alphaSansFamily.getFont(Font.PLAIN, 9,
            Ui.UNITS_pt);
    setFont(appFont);
} catch (ClassNotFoundException e) {
    e.printStackTrace();
}

Thanks!


You can use FontFamily.getFontFamilies() to get a list of all fonts on the device.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜