开发者

Resolve the font "really" used for rendering in Silverlight

开发者 https://www.devze.com 2023-03-29 01:07 出处:网络
As explained here开发者_JS百科 the default FontFamily used in Silverlight is \"Portable User Interface\" which resolves to one of the supported local fonts depending on the platform and availability o

As explained here开发者_JS百科 the default FontFamily used in Silverlight is "Portable User Interface" which resolves to one of the supported local fonts depending on the platform and availability of local fonts.

Is there any way to determine which one is actually used?

Thanks in advance!


No you cant, framework only resolve fonts under hood. But, you can embed/pack fonts in your XAP (silverlight application) with this method you can sure the used font face.

e.g. On Expression Blend 4 http://msdn.microsoft.com/en-us/library/cc294629(v=expression.40).aspx


Some info here: http://msdn.microsoft.com/en-us/library/system.windows.media.fontfamily%28v=vs.95%29.aspx

Quote:

The default value for a referenced FontFamily is initialized with the value Portable User Interface. For non-East Asian cultures, this value is an alias for the font family value (shown here as a string) of "Lucida Sans Unicode, Lucida Grande". Lucida Grande and Lucida Sans Unicode in turn are aliases for the same font and are specified as a pair for compatibility reasons.

0

精彩评论

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