To set multiple fonts in blackberry

你说的曾经没有我的故事 提交于 2020-01-05 09:04:52

问题


How to set multiple fonts in blackberry? Actually we are using the following code to load the custom fonts to our application.

InputStream is = this.getClass().getResourceAsStream("/Text-Italic.ttf");
FontManager.getInstance().load(is, "Text-Italic",
FontManager.APPLICATION_FONT) ;                          

If I want to set another font, Do I have to unload the current font or not?


回答1:


No. You don't have to unload the current font. You can add another custom font.

Thanks

Naveen M



来源:https://stackoverflow.com/questions/11309855/to-set-multiple-fonts-in-blackberry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!