Unfortunately when I upgraded my application to Windows Phone 8 the font stopped rendering – the TextBlock elements would revert to using the default font.Īttempt 1: Adjusting legal rights for embeddingĪfter talking with a few people about what the cause of the issue could be (ie not following options 1 or 2 above) it was suggested (thanks Vaughan from Bitrave) that it was font licensing issue. What’s interesting is that the syntax for using this font in the application is slightly differentīoth of the options presented in the previous section worked brilliant for my font in a Windows Phone 7 project. Now from the FontFamily dropdown you can select the font and you’ll notice that it has an icon next to it indicating that the Font has been added to the project.Īn alternative is to select the font and then check the “Embed” checkbox in the Text group: You will see that this font has been added to a Fonts folder in the Projects window: Select the font that you want to embed in your application, in this case Bradley Hand ITC, and click OK From the FontFamily dropdown, click on the Font Manager button: In the Properties window locate the Text property group (you can type “font” in the search box to reduce the list of properties). Switch to Blend (if you’re not already designing your application in Blend then you should be!) and select the TextBlock where you want to use the custom font. This can be found by opening the TTF file from Windows Explorer using the default Windows Font Viewer:Īn alternative is to get Blend to do the hard work for you. If you put the TTF file in a folder or in a different assembly you’ll need to adjust the path accordingly. Before the # is the path to the TTF file. It’s worth breaking the FontFamily attribute value into its parts.
0 Comments
Leave a Reply. |