title: How to refer to files in asset folder from outside html
body: <p>This problem seems familiar but it's not! I have a webpage on a web server and a <code>webview</code> in Android application that loads the webpage. And instead of loading some font from the Internet (or website), i want to load fonts directly from  asset folder of Android device (to save data and faster). What i have done is to embed this code in the website with the hope it can use the font in Android asset folder instead:</p>
  
  <pre><code>@font-face { 
  font-family: 'DejaVuSans'; 
  src: url('file:///android_asset/fonts/DejaVuSans.ttf'); /* but this does not work*/
  }
  
  body {
    font-family: 'DejaVuSans';
    color: red;
  }
  </code></pre>
  
  <p>(link <a href="https://stackoverflow.com/questions/6724653/change-webview-font-using-css-font-file-in-asset-folder-problem">Change WebView font using CSS; font file in asset folder. (problem)</a>)</p>
  
  <p>I currently test with android 4.+. Can anyone have the solution? Thanks</p>