Share via


Add a custom font to your application

This page applies to WPF and Silverlight 2

Typically, users will already have most of the fonts that you can select in Microsoft Expression Blend 2. 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, subset, 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 Expression 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. Expression Blend 2 supports embedding fonts that are contained in .ttf, .ttc, .otf, and .tte files.

Note

Custom fonts are not available when you open a Microsoft Silverlight 1.0 project.

To add a custom font to your application

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

    Cc295281.94b44cf7-b8c5-47d1-9604-b5e6b7550c57(en-us,Expression.10).png

    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 under Files in the Project panel.

    Cc295281.4586e67b-d8a5-4dde-8b6b-9543f2a320b6(en-us,Expression.10).png

  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

Concepts

Open the Font Manager

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

Format text