title: Using custom font in a UIWebView
body: <p>I would like to display a custom font inside a UIWebView. I have already put the font in the plist under "Fonts provided by application". The code in use:</p>
  
  <pre><code>        UIWebView *webView = [[UIWebView alloc] initWithFrame:myRect];
          NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
          [webView loadHTMLString:html baseURL:baseURL];
          [self addSubview:webView];
  </code></pre>
  
  <p>where html is an NSString that has the following contents:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;style type="text/css"&gt;
  @font-face {
      font-family: gotham_symbol;
      src: local('GOTHAMboldSymbol_0.tff'), format('truetype') 
  } 
  body { 
   font-family: gotham_symbol;
  font-size: 50pt;
  }
  &lt;/style&gt;
  &lt;/head&gt;&lt;body leftmargin="0" topmargin="0"&gt;
  This is &lt;i&gt;italic&lt;/i&gt; and this is &lt;b&gt;bold&lt;/b&gt; and this is some unicode: &amp;#1101;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>I'm using iOS 4.2 so TTF should be supported. I'd appreciate a bit of html/code that actually works.</p>