title: How to Make a GlyphTypeface FontUri generic
body: <p>We have the following image created in our code (It is used to make a image that says "File" for use in the Ribbon):</p>
  
  <pre><code> &lt;DrawingImage x:Key="FileText"&gt;
      &lt;DrawingImage.Drawing&gt;
          &lt;GlyphRunDrawing ForegroundBrush="White"&gt;
              &lt;GlyphRunDrawing.GlyphRun&gt;
                  &lt;GlyphRun
                          CaretStops="{x:Null}" 
                          ClusterMap="{x:Null}" 
                          IsSideways="False" 
                          GlyphOffsets="{x:Null}" 
                          GlyphIndices="41 76 79 72" 
                          FontRenderingEmSize="12" 
                          DeviceFontName="{x:Null}" 
                          AdvanceWidths="5.859375 2.90625 2.90625 6.275390625"&gt;
                      &lt;GlyphRun.GlyphTypeface&gt;
                          &lt;GlyphTypeface FontUri="C:\WINDOWS\Fonts\SEGOEUI.TTF"/&gt;
                      &lt;/GlyphRun.GlyphTypeface&gt;
                  &lt;/GlyphRun&gt;
              &lt;/GlyphRunDrawing.GlyphRun&gt;
          &lt;/GlyphRunDrawing&gt;
      &lt;/DrawingImage.Drawing&gt;
  &lt;/DrawingImage&gt;
  </code></pre>
  
  <p>The problem is that one of our customers has a Windows image that does not use C:\Windows rather they use C:\WINNT. This will cause the application to crash at startup with a not very helpful log. Any ideas how to generalize the FontUri so that it will work on system setups like this as well?</p>