title: android: webview with arabic content doesn't load custom font
body: <p>I have a webview which has an arabic content and I've tried to change the default font with custom one (which is an arabic font) as described <a href="https://stackoverflow.com/a/7395170/1260459">here</a> but with no success. So how can i do that?</p>
  
  <p>any help will be appreciated.</p>
  
  <p><strong>Edit:</strong>
  this is my code:</p>
  
  <pre><code>// Prepare html page
  String fontFamily = "@font-face {"
          + "font-family: 'ARABTYPE';"
          + "src: url('file:///android_asset/fonts/ARABTYPE.TTF');} "
          + "body {font-family: 'ARABTYPE';font-size: large;text-align: justify;}";
  
      String mHTMLHeader = "&lt;html&gt;&lt;head&gt;&lt;style type=\"text/css\"&gt;\n"
              + fontFamily + "\n&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div dir='rtl'&gt;";
  
      String arabicText = "السلام عليكم ورحمة الله";
  
      String mHTMLFooter = "&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;";
  
      String mHtml = mHTMLHeader + "&lt;div dir='rtl'&gt;" + arabicText
              + "&lt;/div&gt;" + mHTMLFooter; 
  
      WebView mBrowser;
  
      mBrowser = (WebView) findViewById(R.id.myWebView);
  
      mBrowser.getSettings().setSupportZoom(true);
      mBrowser.getSettings().setBuiltInZoomControls(true);
      mBrowser.getSettings().setJavaScriptEnabled(true);
      mBrowser.getSettings().setDisplayZoomControls(false);
  
      mBrowser.loadDataWithBaseURL("file:///android_asset/", mHtml, "text/html", "UTF-8", "");
  </code></pre>