BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-15-2007, 01:15 PM   #1 (permalink)
New Member
 
Join Date: Oct 2007
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Using custom fonts

Please Login to Remove!

I would like to use some custom fonts in a BlackBerry application I'm working on. There appear to be 11 built-in fonts, but they don't look great; I'd like to use an anti-aliased font that matches the corporate look of my customer.
The BlackBerry APIs do not seem to offer a way to import additional fonts, and the Font and FontFamily classes do not have public constructors, so I can't create my own fonts, either.
Is there a way to use non-standard fonts with the BB APIs and widgets? All I could find is the Plazmic Theme Builder, but from what I understand, that allows you to customize the entire phone, while I am looking for a way to apply a corporate theme to just one application.

Any thoughts would be greatly appreciated.
Thanks,

- Thomas
Offline  
Old 01-25-2008, 09:34 AM   #2 (permalink)
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, just wondering if you ever solved this problem. I'm also looking for information about custom fonts but have had no luck so far.

Thanks,
IRL
Offline  
Old 01-28-2008, 03:46 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Moscow
Model: 9000
OS: 4.6.0.304
Carrier: MTC
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

We created class for load font from fnt files
and it's really working

see javadoc file
Attached Files
File Type: zip BitmapFont.zip (3.9 KB, 18 views)
Offline  
Old 01-29-2008, 10:31 AM   #4 (permalink)
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, your BitmapFont class looks interesting.
How do actually use it to display a font though? Can you then use it like the net.rim.device.api.ui.Font class or did you have to extend the TextField/RichTextField class and override the draw() function, for example?

Cheers,
- IRL
Offline  
Old 01-30-2008, 03:38 AM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Moscow
Model: 9000
OS: 4.6.0.304
Carrier: MTC
Posts: 72
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

This class works in midlet. We don't use any net.rim.device.api.ui classes.
For paint char we using functions of class javax.microedition.lcdui.Graphics:
clipRect
drawImage
setClip
and other
(sorry, I can't upload sources :( because it isn't my own code)
Offline  
Old 07-08-2008, 01:05 AM   #6 (permalink)
New Member
 
Join Date: May 2008
Model: 8320
PIN: N/A
Carrier: Vinaphone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want a custom font too, this can solve the problem on displaying utf-8 encoded characters on BB devices.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.