开发者

Is possible to pack a particular font in a WPF Program?

开发者 https://www.devze.com 2023-03-31 17:02 出处:网络
For example, I want to pack this font: http://www.dafont.com/mickeys-merry-xmas.font I installed in my computer, and I want to change the font through fontFamily it doesn\'t appear, but if I modify t

For example, I want to pack this font: http://www.dafont.com/mickeys-merry-xmas.font

I installed in my computer, and I want to change the font through fontFamily it doesn't appear, but if I modify that property in XAML it works. I don't know if this sittuation will be a problem.

Well, I only want to sure me that the program wi开发者_运维百科ll run in everywhere with that font.


Here it goes:

http://msdn.microsoft.com/en-us/library/ms753303.aspx


It might be possible to pack the font as a resource in your WPF app, I'm not sure about that. But it would be easier to just install the font with your application's installer.


You can add the font in your executable by adding it to the project, and set it to "Embedded Ressource" in the property window.

Also, Blend has a checkbox to specify that you want the font to be embedded in your program (which will do pretty much the same thing, only automatically).

0

精彩评论

暂无评论...
验证码 换一张
取 消