Posted by Michael Gaigg
What seems to be so trivial on the web feels like jumping through hoops in WPF. But yet again, it's actually that difficult really. Here is how to do:
Custom Fonts in WPF
- Download the TrueType font (.ttf) you are interested in, e.g.
Find the system name of the font which is most likely different to the filename
- Add the file to your WPF solution preferably in its own directory like 'fonts'
Check the properties of the font file and make sure the Build Action is set to 'Resource'
Add the style reference to App.xaml