windows-runtime - 字体系列在 Windows Phone 8.1 中无效

标签 windows-runtime windows-store-apps windows-phone-8.1 expression-blend win-universal-app

WP8 绝对不是这样。

但是在 VS2013 附带的新 Blend 中,字体系列在 Blend Designer 或运行时中没有任何影响。

<TextBlock Text="test" 
           FontSize="{StaticResource HubHeaderFontSize}" 
           FontFamily="{StaticResource PhoneFontFamilySemiBold}"/>
<TextBlock Text="test" 
           FontSize="{StaticResource HubHeaderFontSize}" 
           FontFamily="{StaticResource PhoneFontFamilyLight}"/>

它们仍然是 Segoe WP 还是 Segoe UI?

我注意到,如果我更改字体粗细,它会显示正确的字体。但我真的希望能够使用内置的字体系列资源。有办法吗?

最佳答案

来自 generic.xaml:

<!-- Global font family -->
<FontFamily x:Key="PhoneFontFamilyNormal">Segoe WP</FontFamily>
<FontFamily x:Key="PhoneFontFamilyLight">Segoe WP Light</FontFamily>
<FontFamily x:Key="PhoneFontFamilySemiLight">Segoe WP SemiLight</FontFamily>
<FontFamily x:Key="PhoneFontFamilySemiBold">Segoe WP Semibold</FontFamily>
<FontFamily x:Key="ContentControlThemeFontFamily">Segoe WP</FontFamily>

看起来那些字体没有嵌入...

关于windows-runtime - 字体系列在 Windows Phone 8.1 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25518714/

相关文章:

windows-runtime - WinRT : how can I get type of processor (c#)

c# - AdDuplex 的 Adrotator 问题

.net - 如何在我的应用程序上启用 .Net Native?

windows-phone-8.1 - 如何在 Windows Phone 通用应用程序上做图表

windows - 错误 : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) when trying to register a background task windows phone 8. 1

c# - 如何在 ComboBox 的开头和结尾显示 ComboBoxItem

windows - Windows RT 中的 Powershell 命令

c# - 如何动态创建DataTemplate并为其分配StackPanel?

c# - 编译 C++ 源代码以在 Windows 应用商店应用程序 (Windows 8) 中使用它们

c# - Windows Phone 8.1如何实现应用内购买