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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 3
Registered: ‎11-30-2011
My Device: bold9780
My Carrier: ntt docomo
Accepted Solution

The problem about OS 6.0 BrowserField Font size

[ Edited ]

Hello,

 

I have the problem about BrowserField of Bold 9780 (OS6.0).


When I display following HTLL in Bold9780 BrowserField App,

75% and 50% of Font size(CSS)  is displayed in the same size.
12pt and 8pt are also the same.

 

This problem does not occur in Bold9780 native browser and Bold9700 OS5.0 (BrowserField App and native browser).

 

*HTML contents is below.

<html>
<head>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0">
<title>font-size test</title>
</head>
<body>
<span style="font-size: 25%"> 25%</span>
<span style="font-size: 50%"> 50%</span>
<span style="font-size: 75%"> 75%</span>
<span style="font-size: 100%"> 100%</span>
<span style="font-size: 150%"> 150%</span>
<span style="font-size: 200%"> 200%</span>
<br>
<span style="font-size: 4pt"> 4pt</span>
<span style="font-size: 8pt"> 8pt</span>
<span style="font-size: 12pt"> 12pt</span>
<span style="font-size: 16pt"> 16pt</span>
<span style="font-size: 24pt"> 24pt</span>
<span style="font-size: 32pt"> 32pt</span>
<br>
<span style="font-size: 4px"> 4px</span>
<span style="font-size: 8px"> 8px</span>
<span style="font-size: 16px"> 16px</span>
<span style="font-size: 16px"> 24px</span>
<span style="font-size: 28px"> 28px</span>
<span style="font-size: 32px"> 32px</span>
<br>
<span style="font-size: 0.5em"> 0.5em</span>
<span style="font-size: 0.7em"> 0.7em</span>
<span style="font-size: 0.8em"> 0.8em</span>
<span style="font-size: 1em"> 1em</span>
<span style="font-size: 1.5em"> 1.5em</span>
<span style="font-size: 2em"> 2em</span>
<br>
</body>

 


Please tell me solution.

 

Best Regards,

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: The problem about OS 6.0 BrowserField Font size

Hi and welcome to the forums!

 

What software version of 9780 have you tested (Options > Device > About Device versions)?

Was this a real device or simulator?

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
Posts: 3
Registered: ‎11-30-2011
My Device: bold9780
My Carrier: ntt docomo

Re: The problem about OS 6.0 BrowserField Font size

Thanks for your reply.

I tested by real device.

OS version is below.

 

v6.0.0.587, (Bundle 2599, Platform 6.6.0.220)

 

What's the limit for webkit?

 

 Best Regards,

Highlighted
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: The problem about OS 6.0 BrowserField Font size

Thanks.

 

I looked into this and it's not actually a bug, the BrowserField itself has a minimum font size set, anything lower than this font size will instead use the set minimum font size.

 

You can override this minimum using:

BrowserField#getRenderingOptions()#setProperty()

 

Using the following parameters:

RenderingOptions.CORE_OPTIONS_GUID

RenderingOptions.MINIMUM_FONT_SIZE

int yourDesiredMinimumFontSize

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
Posts: 3
Registered: ‎11-30-2011
My Device: bold9780
My Carrier: ntt docomo

Re: The problem about OS 6.0 BrowserField Font size

Thanks for advice.

 

I tried to confirm the RenderingOption.


As hoped, the size was changed.

 

However, I have a concern that getRenderingOptions method is deprecated.

 

in any case, Thank you sincerely.

Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: The problem about OS 6.0 BrowserField Font size

Use this one........

if(DeviceInfo.getSoftwareVersion().startsWith("5.0"))
browser.displayContent("<font size=2>"+Description,"");
else
browser.displayContent("<font size=-5>"+Description,"");

it will help you much better.......
Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.