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.
重要 |
---|
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
Open the Font Manager.
For more information, see Open the Font Manager.
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
Select the object that contains the text that you want to format, by using either the Selection tool or the Direct Selection tool .
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.
In the Properties panel, under Text, click the Font tab , and then select your custom font from the FontFamily drop-down menu. (Custom fonts are displayed at the top of the list.)
Select the Embed check box to embed the font in your application.
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.