0

I have a font imported to a folder named "fonts" I am trying to implement it to a label, but I don't know how to add it to the font family

FontFamily fam = (Uri("pack://firstwpfapp:,,,/fonts/DigitalFont.TTF", UriKind.Absolute));
Zach
  • 15
  • 6
  • Possible duplicate to https://stackoverflow.com/questions/6453640/how-to-include-external-font-in-wpf-application-without-installing-it – Jerry Mar 02 '19 at 01:17
  • Always resolve and use an absolute path for any font. If it doesn't start with a drive letter and you can paste it into file manager then it isn't absolute. https://stackoverflow.com/questions/31452443/wpf-textblock-memory-leak-when-using-font – Andy Mar 02 '19 at 14:38

0 Answers0