Embed a font

This page applies to WPF projects only

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.

To follow this procedure, you need a font file. Download a free font file from one of the free type foundry websites listed at Microsoft Typography website. It is your responsibility to make sure that you have the required license rights for any font embedded in your application.

To embed a font in your application

  1. On the Project menu, click Add Existing Item, browse to your font file, and then click Open to add it to your project.

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

  2. From the Toolbox, select the TextBox Cc296385.343296b4-5c7d-4145-84cc-91b08ba67a1b(en-us,Expression.10).png control. Draw a textbox on the artboard in your main document (Window1.xaml). Expression Blend automatically enters text-editing mode (F2).

    Cc296385.6fed5e9a-331e-4ad4-9c96-7f815cf1272b(en-us,Expression.10).png

  3. Under Text in the Properties panel, select the Font tab, and then select your new font from the FontFamily drop-down list.

    New fonts are always displayed at the top of the list.

    Cc296385.d32e646c-f3df-4ed2-8e36-c7535d47abae(en-us,Expression.10).png

  4. Under Text in the Properties panel, select the Embed checkbox.

  5. In the Subset drop-down list, select Dynamic so that all the characters in the font will be embedded in your application.

    Cc296385.96a182b0-e306-42d5-b57c-ea0e185cb127(en-us,Expression.10).png

    You can view and modify all embedded fonts by clicking Font Manager on the Tools menu. Font embedding ensures that your users will see the font that you select.

    Cc296385.69eb8d5f-797b-495e-b8ba-77261d0061a0(en-us,Expression.10).png

Next steps

See also

Concepts

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

Edit text

Format text