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
Highlighted
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none
Accepted Solution

Why is webivew default font so small

Why is the default webivew font so small, its not usable.

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: Why is webivew default font so small

[ Edited ]

If the webview font size is too small, it can be changed with the following QML:

 

WebView {
    id: myWebView
    objectName: "myWebView"
                    
    settings {
        // This is the important bit!
        defaultFontSize: 16 
    }
}

 

Also, if you hook up the defaultFontSize property to a slider's value, the user can change the font size to their own preference.



Did this post help you? If so, please make sure to "like" it!
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: Why is webivew default font so small

Very good answer. I actually changed it in the <style> tag, but my point is why not fix it. The default is not usable, and it should be a value that is resolution dependent.


Thanks for the answer