O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Third-Party Fonts via Font Embedding

Font embedding allows you to place a third-party font into your application. Numerous websites offer fonts for purchase, and some even offer free fonts.

Note

Like all media sourced from external sources, be sure that you are legally entitled to redistribute fonts that have been embedded in your application. Be aware that the licensing restrictions of some fonts allow you to create graphics with the font but not to redistribute the font itself.

To embed a font, include it in your Visual Studio project. Set the Build Action in the Visual Studio Properties pane to Content (see Figure 6.5). This causes the font file to be placed in the XAP file when the project is built.

FIGURE 6.5 For embedded fonts, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required