How to set a custom font of Webview in Android 4.2.2? -


i want set custom font in webview android 4.2.2. did code set custom font that's not working on 4.2.2 , same code working on other android version. here used below code

data="ઘૂંટણની સખત ત્વચા અને કાળી પડી ગયેલી કોણી પર લીંબુમાં ખાંડ મિક્સ કરી આ મિશ્રણ બરાબર ઘસો";  string head = "@font-face {font-family: 'myfont';src: url('file:///android_asset/notosansgujaratiui-regular.ttf')}body {font-family: 'myfont';}";  string htmldata = ""             + head + "" + data + "";  webview.loaddatawithbaseurl("", htmldata, "text/html", "charset=utf-8", ""); 

i post screenshots of running device

it shows working device in green circle , not working device in red circle means 4.2.2

pls give me solution regarding this


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -