First look at the effect:
I have read a lot about this.ArticleIs not comprehensive. Today, I saw a video tutorial at the Microsoft student center. It can be understood in English.
The video describes two methods to embed and call a font in a Silverlight xap file. The first steps are the same:
1. Right-click the Silverlight project and choose add> existing items to add the font file you want to use to the project. Here, I am adding a 文 file, stxingka. TTF. The English name of the font (which can be found in the Registry) is stxingkai.
2. Right-click the added font file and select "properties ";
There are two methods from here:
1. Change the property value of "Copy to output directory" to "copy if new", and change the property value of "generate operation" to "content". When the font is used,CodeAs follows:
Format :/Font File Name#Font English name
For example: <textblock fontfamily = "/stxingka. TTF # stxingkai" text = "section info not loaded"/>
2. Change the "Copy to output directory" attribute value to "do not copy", and change the "generate operation" attribute value to "resource". When using a font, the Code is as follows:
Format:Font File Name#Font English name
For example: <textblock fontfamily = "stxingka. TTF # stxingkai" text = "section info not loaded"/>
If you have any omissions in the above personal experience, please forgive me and give me more advice!