Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
ganeshS
Posts: 133
Registered: ‎12-31-2009
My Device: Not Specified

need font name List in blakberry

Hello Frinds,

 

I am setting my font with following code.

 

 

FontFamily family = FontFamily.forName("BBCasual");

 

 

As we know, here "BBCasual" is a font name. I want to know all the font list (as "BBCasual") are supported. I want names of all fonts

 

 

 

Thank you

Trusted Contributor
swapnil_gadkari
Posts: 200
Registered: ‎02-22-2010
My Device: BlackBerry 9550

Re: need font name List in blakberry

If you can't find a list of supported font names, you can simply specify font-families. These are the font-families used in WCSS (WAP CSS):

  • serif
    examples: Times New Roman
  • sans-serif
    examples: Arial, Helvetica
  • monospace
    examples: Courier
  • cursive
    examples: Zapf-Chancery, Caflisch Script
  • fantasy
    examples: Western, Critter
Swapnil G.
Developer
Developer
gtj
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: need font name List in blakberry

FontFamily[] ffa = FontFamily.getFontFamilies();