Segoe SemiBold字体在Windows Phone应用程序中不起作用

时间:2015-10-29 10:07:53

标签: c# xaml windows-phone-8 fonts windows-phone-8.1

在我们的应用中,我们使用普通,大胆和semibold类型的Segoe UI字体。 在设计师中,所有这3个看起来都不同,但是在设备(或模拟器)上,semibold字体不能正常工作,它看起来与粗体相同。

我也尝试使用“Segoe UI SemiBold”字体而不是“Segoe UI”,但效果相同。

以下是代码:

<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" >
        <TextBlock Margin="5" Text="Hello World!" FontFamily="Segoe UI" FontSize="30" />
        <TextBlock Margin="5" Text="Hello World!" FontFamily="Segoe UI SemiBold" FontSize="30" FontWeight="SemiBold"/>
        <TextBlock Margin="5" Text="Hello World!" FontFamily="Segoe UI Bold" FontSize="30" FontWeight="Bold" />
</StackPanel>

此外,来自设计师和附件的附加屏幕截图模拟器。 Designer Screenshot Simulator Scrrnshot

在设计师中我们可以看到所有3种字体之间的区别,而在模拟器semibold&amp;大胆看起来很相似。

1 个答案:

答案 0 :(得分:0)

设置字体系列并不理想。可行的首选方法是设置FontWeight

相关问题