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
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Webview Font Type

Hi I'm using webview on my apps.

I want to change font type / family of webview.

How to do that?

 

Is there any qml property to do this? Or I must set from html text/ css?

 

 

Thanks

Please use plain text.
Developer
BBSJdev
Posts: 6,094
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Webview Font Type

You need to do it within the HTML/ CSS.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Kaz32
Posts: 236
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: Webview Font Type

[ Edited ]

Hi, I can change webview font-type within HTML-CSS

 

But I want to set webview font-type -> same as Label component on QML (default Label font-type)

 

Anyone know what font-family I must set to get same font type on Label ?

 

I try this one, but still different from Label font-type

:

WebView {
html: "<html><div style='font-family:\"Slate Pro\", Slate, \"Myriad Pro\", \"BBAlpha Sans\", Helvetica;font-size:medium;'>" + textHTML + "</div></html>"
}

 

 

 

Thanks

Please use plain text.
New Developer
ericwijaya
Posts: 1
Registered: ‎10-24-2013
My Device: Z10
My Carrier: Telkomsel

Re: Webview Font Type

Hi, any idea how to do this?

 

 

Thanks

Please use plain text.