title: Using WPF custom compositefont from dll resource
body: <p>I have a custom composite font as a resource in a library dll that I'd like to load but I'm unable to get the exact syntax.  I tried:</p>
  
  <pre><code>FontFamily font = new FontFamily(
    new Uri("pack://application:,,,/MyLibraryDll"), 
    "./fonts/#My Font from composite font");
  </code></pre>
  
  <p>Which didn't work so I tried enumerating the fonts with:</p>
  
  <pre><code>ICollection&lt;FontFamily&gt; fonts = Fonts.GetFontFamilies(
     new Uri("pack://application:,,,/MyLibraryDll"), 
     "./fonts/#My Font from composite font");
  </code></pre>
  
  <p>And</p>
  
  <pre><code>ICollection&lt;FontFamily&gt; fonts = Fonts.GetFontFamilies(
    new Uri("pack://application:,,,/MyLibraryDll"),
    "./fonts/mycompositefont.compositefont#My Font from composite font");
  </code></pre>
  
  <p>And both return a count of 0.  There is no documentation on these that I can find -- has anyone had any luck with this?</p>