title: How do I use Roboto Thin embedded in XAML?
body: <p>I'm working on a C# WPF project that has the Roboto and Roboto Thin fonts embedded. They font files are in /Resources/Fonts and their build actions are set to 'Resource'. In my App.xaml, I declare the resources:</p>
  
  <pre><code>&lt;FontFamily x:Key="Roboto"&gt;/Resources/Fonts/#Roboto&lt;/FontFamily&gt;
  &lt;FontFamily x:Key="RobotoThin"&gt;/Resources/Fonts/#Roboto Thin&lt;/FontFamily&gt;
  </code></pre>
  
  <p>The Roboto font works properly (as do some other embedded fonts), but Roboto Thin doesn't work. I've tried '.../Roboto-Thin.ttf', 'Roboto-Thin', 'Roboto_Thin' and the FontWeight property on the label/textblock but nothing works. When I try to use Roboto Thin on a UIElement, it doesn't seem to recognize it and it falls back to the default font (probably Segoe UI).</p>
  
  <p>What am I doing wrong?</p>
  
  <p>-- edit --</p>
  
  <p>I just tried Roboto Light, but that doesn't work either. It would seem that only the regular fonts work but variations don't.</p>