<Window x:Class="GlyphExamples.GlyphsFonts"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Glyphs and Fonts" Height="300" Width="350"
    >
  <StackPanel>

    <!-- Example 14-25. Glyphs -->
    
    <Glyphs FontUri="C:\Windows\Fonts\Calibri.ttf" FontRenderingEmSize="40"
        UnicodeString="Hello, world" Fill="Black" OriginY="30" />

    <!-- End of Example 14-25. -->

    
    <!-- Example 14-27. Setting FontUri with a custom markup extension -->
    
    <Canvas xmlns:loc="clr-namespace:GlyphsUriLookup">
      <Glyphs FontUri="{loc:FontUri Calibri}" FontRenderingEmSize="40"
              UnicodeString="Hello, world" Fill="Black" OriginY="30" />
    </Canvas>

    <!-- End of Example 14-27. -->

    
    <Rectangle Height="50" />

    
    <!-- Example 14-28. Using Indices -->
    
    <Glyphs FontUri="C:\Windows\Fonts\Calibri.ttf"
        FontRenderingEmSize="40"
        Indices="44,60;286,60;367,60;367,60;381,60;853,60;3,60;
                 449,60;381,60;396,60;367,60;282,60;842,60"
        UnicodeString="Hello, world!"
        Fill="Black"
        OriginY="30" />

    <!-- End of Example 14-28. -->

  </StackPanel>
</Window>
