Android WebView error when showing bold text -
i calling http://www.createtrips.com/legal/about-us in app browser
on android devices, shows bolder, not show text bolder.
i using:
//show info mwebviewsettings.setwebviewclient(new webviewclient() mwebviewsettings.getsettings().setjavascriptenabled(true); mwebviewsettings.getsettings().setloadsimagesautomatically(true); mwebviewsettings.setscrollbarstyle(view.scrollbars_inside_overlay); mwebviewsettings.loadurl(linkpage);
follow google webfonts not working using web view in android 4.0 , 4.2.2 .
the answers above valid , give insight subject, moallemi , vaiden those. cannot use web fonts on android 4.0 shame.
the solution our problem webfonts on android 4.2 related fact in css google uses include actual font files specify format. means in google's css have code like:
src: url("http://some.google.server/some/path/fontname.ttf") format('ttf'); turns out fonts don't render in webview on android 4.2 if format() clause present in css (or node of html). solution therefore simple; css should have line this:
src: url("http://some.google.server/some/path/fontname.ttf"); makes font work. this, however, not make "simple" solution. since google provides css containing error need create, include/use , supply own version of css file , if not want subject of google updating location of font files need host font files yourself.
Comments
Post a Comment