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


Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C picture

Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C

$17.99



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$40.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90



OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$40.90



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$43.90







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