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

Web and WebWorks Development

Reply
New Contributor
bhalchandratk
Posts: 2
Registered: ‎06-28-2012
My Device: 8520
My Carrier: Airtel

fixed width or monospace font support by blackberry browser

Hello,

 

My web app is targeted for Blackberry 5.0 and above devices.

On 5.0 devices, web page UI gets distored when there are more upper case letters.

 

So i thought can if i use fixed width font, this'll fix the problem. But i'm not sure if 5.0 supports default fixed width font or does it allow to install it using font-face CSS property?

 

references - BlackBerry font properties

 

Thanks.

 

 

Please use plain text.
Regular Contributor
BertKoor
Posts: 81
Registered: ‎03-09-2012
My Device: PlayBook & Bold 9780
My Carrier: n/a

Re: fixed width or monospace font support by blackberry browser

Custom fonts should be supported, as it's part of standard HTML5.

 

Example style sheet:

@font-face {
font-family: myMonospaceFont;
src: url('http://yourdomain.com/pathOnServer/AnyMonoSpaceFontSuppliedByYou.TTF');
}

body {
font-family: myMonospaceFont;
}
Please use plain text.
New Contributor
bhalchandratk
Posts: 2
Registered: ‎06-28-2012
My Device: 8520
My Carrier: Airtel

Re: fixed width or monospace font support by blackberry browser

Thanks for reply.

 

I'm facing this problem for Blackberry browser 5.0 where HTML5 is not supported.

So cannot use Font-face CSS property.

 

Is there any hack or work around for this?

 

 

 

Please use plain text.
Regular Contributor
BertKoor
Posts: 81
Registered: ‎03-09-2012
My Device: PlayBook & Bold 9780
My Carrier: n/a

Re: fixed width or monospace font support by blackberry browser

Maybe the usual font family fallback list will suffice:

 

font-family: myMonospaceFont, "Andale Mono", Monaco, monospace;

 

Anyway, I often find myself setting different figures in the css "width" element and "maxLength" of input fields, just to overcome these types of problems. And do you specify sizes in "em" units? Good practice to do so, that should be the width of large letters.

Please use plain text.