Android webview custom font using javascript
问题 I am trying to show text in webview with custom font which i have selected to show that font style. So following details explain the problem in code public void setFontFamily(String fontFamily) { exec("javascript:RE.setFontFamily('" + fontFamily + "');"); } So In JS file I have following the code RE.setFontFamily = function(fontFamily) { RE.restorerange(); //document.execCommand("insertHtml", false, " ") console.log("Font Family: "+fontFamily) document.execCommand("styleWithCSS", null,