Michael Gaigg: Über UI/UX Design

5Feb2

Use FontAwesome font in WPF apps

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

  1. Download the TrueType font (.ttf) you are interested in, e.g.
    WPF_fonts_FontAwesome01

    Find system name

  2. Find the system name of the font which is most likely different to the filename
    WPF_fonts_FontAwesome02

    Find system name

  3. Add the file to your WPF solution preferably in its own directory like 'fonts'
  4. Check the properties of the font file and make sure the Build Action is set to 'Resource'
    WPF_fonts_FontAwesome03

    Check properties

  5. Add the style reference to App.xaml
    App.xaml

    App.xaml

  6. Include the font x:Key as the StaticResource Style attribute to your TextBlock elements
    Add to TextBlock

    Add to TextBlock

  7. To find the Text of a FontAwesome please refer to the

Here is how this little snippet will look like:

Sample Output

Sample Output

29Sep0

Highlights of Week 38/2010

Posted by Michael Gaigg