title: Download a true type font file( .ttf) hosted on a service and use it at runtime
body: <p>I have a True type font (.ttf) file hosted on a service. I obtain it in the form of a byte array. I need to set the font in that file during run-time.</p>
  
  <p>I am facing the problem on Windows Phone 7 and the service used is a simple WCF service which provides the .ttf file as a byte-array.</p>
  
  <p>This is what I have done till now but it doesn't seem to work.. : </p>
  
  <pre><code>        IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication();
          string fontPath = string.Empty;
          string ss = string.Empty;
  
          IsolatedStorageFileStream fs = new IsolatedStorageFileStream("foo.ttf", System.IO.FileMode.Create, file);
          fs.Write(e.Result.byteArray, 0, e.Result.byteArray.Length);
          fs.Dispose();
  
          fs = new IsolatedStorageFileStream("foo.ttf", FileMode.Open, file);
          ss = fs.Name + @"#My Font";
          textBlock1.FontFamily = new System.Windows.Media.FontFamily(ss);
  </code></pre>