Skip to content

Instantly share code, notes, and snippets.

@HamGuy
Created July 30, 2013 03:20
Show Gist options
  • Save HamGuy/6109950 to your computer and use it in GitHub Desktop.
Save HamGuy/6109950 to your computer and use it in GitHub Desktop.
Using custom font in windows phone
1.Add the font file to the project.
2.Set the build action to "Content".
3.Set the copy option to "Copy if Newer".
Useage:
XAML:
FontFamily="Fonts/pendule_ornamental.ttf#pendule ornamental"
Code-Behind:
myTbk.FontFamily = new FontFamily("/Fonts/pendule_ornamental.ttf#pendule ornamental");
be careful about the format of the value of the FontFamily property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment