Partilhar via


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

Typically, users will already have most of the fonts that you can select in Blend for Visual Studio 2012 installed on their computers, and therefore you do not have to embed them. However, if you have added a custom font to your application, you must embed the whole font or a subset of the font. Otherwise, users who do not have that custom font installed on their computers will not be able to view the custom font in your application. Instead, a default system font will be used to display the text.

For information about adding fonts, see Add a custom font to your application.

Observação importanteImportante

If you decide to embed a font, use a subset of a font, 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 embed a font using the Font Manager

  1. Open the Font Manager.

    For more information, see Open the Font Manager.

    JJ170766.69eb8d5f-797b-495e-b8ba-77261d0061a0(pt-br,VS.110).png

  2. Under Choose fonts to embed in the application, select the check box next to the font that you want to embed, and then, under Choose subsets of the selected font to embed, do one of the following:

    • To embed the whole font, select the All glyphs check box.

    • To embed only those characters that you use in your application, select the Auto fill check box.

    • To embed a static subset of the font, select one or more of the remaining character sets under Choose subsets of the selected font to embed. You can also enter individual characters in the Include glyphs text box to embed those characters.

To embed a font while modifying a text control

  1. Select the object that contains the text that you want to format, by using either the Selection tool JJ170766.2ff91340-477e-4efa-a0f7-af20851e4daa(pt-br,VS.110).png or the Direct Selection tool JJ170766.6dd6571f-c116-451d-8dd2-1f88b8406362(pt-br,VS.110).png.

  2. If your text object supports rich text, press F2 to enter text-editing mode for the object, and then select the text that you want to format.

  3. In the Properties panel, under Text, click the Font tab JJ170766.17db489b-22e6-4b99-9a19-fa1ed9d51e7e(pt-br,VS.110).png, and then select your custom font from the FontFamily drop-down menu. (Custom fonts are displayed at the top of the list.)

  4. Select the Embed check box to embed the font in your application.

    JJ170766.fc5b9ec5-be55-4bdf-8871-ffbd193ef50a(pt-br,VS.110).png

  5. To embed only a subset of the font, click Font Manager, and then select one or more of the character sets under Choose subsets of the selected font to embed.

Consulte também

Tarefas

Add a custom font to your application

Format text

Open the Font Manager