1

I am developing an application using WPF, and when I install it on another computer, the fonts that it uses don't exist on the new system, so "Tahoma" by default.

Is there any way that I can compile my application's fonts as resources? If so, how would I need to change the code to use the resource fonts? Would the syntax be something like this?

 textblock1.FontFamily = ....."mysegioui.ttf"..;
FishBasketGordo
  • 22,904
  • 4
  • 58
  • 91
S3ddi9
  • 2,121
  • 2
  • 20
  • 34
  • possible duplicate of [WPF - Add Custom Font](http://stackoverflow.com/questions/358501/wpf-add-custom-font) – Nasreddine Sep 25 '12 at 14:28

1 Answers1

2

There is! http://msdn.microsoft.com/en-us/library/ms753303.aspx says this is how you referance it in xaml.

<Run FontFamily="/FontLibrary;Component/#Kootenay" FontSize="36">
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
</Run>
Billdr
  • 1,557
  • 2
  • 17
  • 30