BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-15-2007, 12:15 PM   #1
tokken
New Member
 
Join Date: Oct 2007
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 11
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
irlennard
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
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
set84
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Moscow
Model: 9000
OS: 4.6.0.304
Carrier: MTC
Posts: 72
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
irlennard
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
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
set84
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Moscow
Model: 9000
OS: 4.6.0.304
Carrier: MTC
Posts: 72
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, 12:05 AM   #6
nguyenhoangvk
New Member
 
Join Date: May 2008
Model: 8320
PIN: N/A
Carrier: Vinaphone
Posts: 3
Default

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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



New Genuine Dell OEM G Series G5 5590 Heatsink Assembly 35YK5 035YK5 1RGDW picture

New Genuine Dell OEM G Series G5 5590 Heatsink Assembly 35YK5 035YK5 1RGDW

$10.99



Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M picture

Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M

$2.95



Dell OEM Latitude Rugged Extreme 7404 Docking Connector Circuit Board picture

Dell OEM Latitude Rugged Extreme 7404 Docking Connector Circuit Board

$14.95



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98







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