title: External font doesn't load in Android 2.1
body: <p>I'm using a external TrueType font in an embedded HTML resource. The font is located in assets, at the same level than the HTML resource. </p>
  
  <p>The font is loaded with CSS:</p>
  
  <pre><code>@font-face { 
      font-family: MyExternalFont; 
      src: url('MyExternalFont.ttf'); 
  }
  body {
      font-family:MyExternalFont;
  }
  </code></pre>
  
  <p>And the HTML resource is loaded as follows:</p>
  
  <pre><code>WebView w = (WebView) findViewById(R.id.webview);
  w.loadUrl("file:///android_asset/index.htm");
  </code></pre>
  
  <p>This works fine in <strong>Android 1.5</strong>, <strong>Android 1.6</strong> and <strong>Android 2.2</strong>. It doesn't work in <strong>Android 2.1</strong>.</p>
  
  <p>However, when I load the font and use it in a <code>TextView</code>, it works on all Android versions. I do it like this:</p>
  
  <pre><code>final Typeface t = Typeface.createFromAsset(getContext().getAssets(), "MyExternalFont.ttf");
  textView.setTypeface(t);
  </code></pre>
  
  <p>What might be the problem?</p>
  
  <p>(Unfortunately I can't upload the font because it's a paid font)</p>