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

Native Development

Reply
Developer
Posts: 27
Registered: ‎12-11-2012
My Device: Blackberry Z10
My Carrier: Viettel
Accepted Solution

How to display text with very big font size?

[ Edited ]

I'm use html and css to display text with big font size.

Label {
    text: "<html><span style=\"font-size:100\">Acit</span></html>"
} 

In the picture below, it's the biggest size although i try to increase font-size value. Do you know how to display bigger font size?

 

white area is simulator screen

 

Thanhks

Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: How to display text with very big font size?

You can have a try with TextStyle to change FontSize and FontWeight

 

http://developer.blackberry.com/cascades/reference/bb__cascades__textstyle.html




p(^_^)q
Good good study, day day up
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: How to display text with very big font size?

You should be able to boost it up with scaleX/scaleY properties as well, though presumably quality will suffer a bit (but likely not noticeably, for most people).

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 323
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900
My Carrier: Telus

Re: How to display text with very big font size?

If you set the size as px or pt does it increase?

E.g. 200px or 96pt (adjust values as needed)

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Developer
Posts: 27
Registered: ‎12-11-2012
My Device: Blackberry Z10
My Carrier: Viettel

Re: How to display text with very big font size?

[ Edited ]

Thanks for your answers

 

I have already try to set the size as px or pt, use textStyle.fontSize: FontSize.PointValue; textStyle.fontSizeValue: 1000;

But it was limited and i want bigger text than the image above.

 

Use scaleX and scaleY is the best solution now.