I am failing to add a custom font. I followed the steps here which refer to this page but the font is not used.
I've added the fonts to my project
The do appear in my designer views
The font opened in Windows (to verify the name of the font):
But when I refer to them, they are still not used in my app. I've tried the following syntaxes
<TextBlock
Grid.Column="1"
Text="{x:Bind Text}"
FontFamily="ms-appx:///Assets/Delphi-Soleto_Lt.ttf#Delphi-Soleto Light"/>
Or as the designer fills it in when I choose the font in designer
<TextBlock
Grid.Column="1"
Text="{x:Bind Text}"
FontFamily="Delphi-Soleto Light"/>
Or as this site proposes
<TextBlock
Grid.Column="1"
Text="{x:Bind Text}"
FontFamily="/Assets/Delphi-Soleto_Lt.ttf#Delphi-Soleto Light"/>
Help is much appreciated...!
Uploaded GIT repo to:
https://github.com/basprins/CustomFontWinIot
I am trying to use Delphi font in BulletText.xaml :
<TextBlock
Grid.Column="1"
Margin="0, 13, 0, 0"
Style="{StaticResource Normal}"
Text="{x:Bind Text}"
FontFamily="{StaticResource DefaultFont}"/>
I added the BulletText control to the mainpage, which will be visible immediately when the app starts.
Update git repo with blank app that refers to fonts which won't show
On my PC I did not install the fonts into windows. I just added them to the project. Code see github page. Screenshot of designer view






