How to load font permanently in blackberry app(font manager loads single time only).when use this code in app it loads gowthami font only once

Posted by Raj Kamal on Stack Overflow See other posts from Stack Overflow or by Raj Kamal
Published on 2012-06-01T04:36:29Z Indexed on 2012/06/01 4:41 UTC
Read the original article Hit count: 146

Filed under:

if (FontManager.getInstance().load("gautami.ttf", "gautami", FontManager.APPLICATION_FONT) == FontManager.SUCCESS)

        {
        try{

         _fontFamily1  = FontFamily.forName("gautami");//_fontFamily1 = FontFamily.forName("aerial");
    } catch(ClassNotFoundException e) {
            _fontFamily1 = Font.getDefault().getFontFamily();
    }
     _headFont = _fontFamily1.getFont(Font.PLAIN,_size);

     super.setFont(_headFont);

}

© Stack Overflow or respective owner

Related posts about blackberry