Search code examples
blackberryfontstruetype

blackberry suporetd telugu font


I'm checking this condition to load a font:

  if (FontManager.getInstance().load("/res/gautami.ttf", "MyFont", FontManager.APPLICATION_FONT) == FontManager.SUCCESS)
     try {
         FontFamily typeface = FontFamily.forName("MyFont");
         Font myFont = typeface.getFont(Font.PLAIN, 50);
         helloWorld.setFont(myFont); 
     }

My code does not enter into the loop.

Even I tried: vemana2000, pothana, abteluhu, akaher etc....
I'm getting NullPointerException


Solution

  • Your font file size should be less than 60KB