Created
July 30, 2013 03:20
-
-
Save HamGuy/6109950 to your computer and use it in GitHub Desktop.
Using custom font in windows phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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