Add a custom font to your application

Typically, users will already have most of the fonts that you can select in Blend for Visual Studio 2012. However, you can add custom fonts to your project and then apply those fonts to text controls in your application. If you add a custom font to your application, you must embed it in your application for users to see the font.

Important

If you decide to embed, create a subset of, or otherwise redistribute fonts in your application, it is your responsibility to make sure that you have the required license rights for those fonts.

For the fonts that come with Blend, see the Microsoft Software License Terms (EULA.language.rtf) file for full license terms. For other commercial fonts, see the Microsoft Typography website for information that can help you locate a particular font vendor or find a font vendor for custom work. Blend supports embedding fonts that are contained in .ttf, .ttc, .otf, and .tte files.

To add a custom font to your application

  1. In an open project in Blend, in the Projects panel, right-click your project name, and then click Add Existing Item.

    The Add Existing Item window appears.

  2. Browse to the custom font file (typically with a .ttf file name extension), select the custom font file so that it appears in the File text box, and then click Open.

    The custom font file is added to your application and appears in the Projects panel.

  3. You can now embed the complete font or a subset the font in your application, and apply the font to text controls in your application.

    For more information, see Embed a font or a subset of a font in your application and Format text.

See Also

Tasks

Open the Font Manager

Embed a font or a subset of a font in your application

Format text