

The best answer to this question I found here MSDN: Packaging Fonts with Applications.


Fonts/NotoSans-BoldItalic.ttf#Noto Sans It should look like in the following code sample. csproj file should now should have a section like this one: Set BuildAction: Content and Copy To Output Directory: Copy if newer or Copy always. You can also set the font imperatively: myTextBlock.FontFamily = new FontFamily(new Uri("pack://application:,/"), "./Fonts/#Noto Sans") Īdd the True Type Fonts ( *.ttf) files to that order Pack://application:,/Fonts/#Noto Sans Symbols Note that the URI doesn't contain the filename when packing with the application. Set BuildAction: Resource and Copy To Output Directory: Do not copy. Select the fonts and add them to the solution Package with ApplicationĪdd the True Type Fonts ( *.ttf) files to that folder The difference is mostly the URI you need to load the files. The other way is to have the fonts in an folder. One way is to package the fonts inside the application.
