title: UWP IoT how to add custom font
body: <p>I am failing to add a custom font. I followed the steps <a href="https://stackoverflow.com/questions/46185389/installing-custom-font-ttf-on-windows-10-iot-device">here</a> which refer to <a href="http://www.blendrocks.com/code-blend/2015/01/04/a-complete-guide-to-working-with-custom-fonts-in-your-windows-and-windows-phone-app" rel="nofollow noreferrer">this page</a> but the font is not used.</p>
  
  <p>I've added the fonts to my project</p>
  
  <p><a href="https://i.stack.imgur.com/b2pZ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b2pZ9.png" alt="enter image description here"></a></p>
  
  <p>The do appear in my designer views</p>
  
  <p><a href="https://i.stack.imgur.com/jqVM9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jqVM9.png" alt="enter image description here"></a></p>
  
  <p>The font opened in Windows (to verify the name of the font):</p>
  
  <p><a href="https://i.stack.imgur.com/U0kRw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U0kRw.png" alt="enter image description here"></a></p>
  
  <p>But when I refer to them, they are still not used in my app. I've tried the following syntaxes</p>
  
  <pre><code>&lt;TextBlock 
      Grid.Column="1" 
      Text="{x:Bind Text}"
      FontFamily="ms-appx:///Assets/Delphi-Soleto_Lt.ttf#Delphi-Soleto Light"/&gt;
  </code></pre>
  
  <p>Or as the designer fills it in when I choose the font in designer</p>
  
  <pre><code>&lt;TextBlock 
      Grid.Column="1" 
      Text="{x:Bind Text}"
      FontFamily="Delphi-Soleto Light"/&gt;
  </code></pre>
  
  <p>Or as <a href="https://blog.mzikmund.com/2017/01/using-custom-fonts-in-cs-uwp-apps/" rel="nofollow noreferrer">this site</a> proposes</p>
  
  <pre><code>&lt;TextBlock 
      Grid.Column="1" 
      Text="{x:Bind Text}"
      FontFamily="/Assets/Delphi-Soleto_Lt.ttf#Delphi-Soleto Light"/&gt;
  </code></pre>
  
  <p>Help is much appreciated...!</p>
  
  <p>Uploaded GIT repo to:</p>
  
  <p><a href="https://github.com/basprins/CustomFontWinIot" rel="nofollow noreferrer">https://github.com/basprins/CustomFontWinIot</a></p>
  
  <p>I am trying to use Delphi font in <code>BulletText.xaml</code> :</p>
  
  <pre><code>    &lt;TextBlock 
          Grid.Column="1" 
          Margin="0, 13, 0, 0"
          Style="{StaticResource Normal}" 
          Text="{x:Bind Text}"
          FontFamily="{StaticResource DefaultFont}"/&gt;
  </code></pre>
  
  <p>I added the <code>BulletText</code> control to the mainpage, which will be visible immediately when the app starts.</p>
  
  <p>Update git repo with blank app that refers to fonts which won't show </p>
  
  <p>On my PC I did <em>not</em> install the fonts into windows. I just added them to the project. Code see github page. Screenshot of designer view</p>
  
  <p><a href="https://i.stack.imgur.com/jBXrv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jBXrv.png" alt="enter image description here"></a></p>