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

Reply
Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Not able to change font size in Browserfield

Hi,

I have made an application which shows html email content in browserfield.I have tried to set its font size but seems it doesn't work.I need to show fonts bigger than its orginal size. I have tried setFont and 

browserfiled.getRenderingOptions().setProperty(RenderingOptions.CORE_OPTIONS_GUID,
RenderingOptions.MINIMUM_FONT_SIZE, 20); but both are not showing result as expected. has anybody made that work?

Rujuta Trivedi
Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: Not able to change font size in Browserfield

Hi,

 

Try to add "<font size=requiredsize>" tag to the content you are displaying.

 

For example

String fsize = "<font size=2>";

now append this string to your content which you want to show in browser.

 

Thanks.

Highlighted
Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: Not able to change font size in Browserfield

Ya I have tried that too but it is showing the original text only,not the increased size font
Rujuta Trivedi