Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Vista上的字体渲染错误_C#_Wpf_.net 4.0 - Fatal编程技术网

C# Vista上的字体渲染错误

C# Vista上的字体渲染错误,c#,wpf,.net-4.0,C#,Wpf,.net 4.0,你好。 我在Vista(WPF4)上有一个奇怪的字体渲染错误 这是我在Win7上的应用程序截图 这里是Vista XAML代码非常简单: <Window ... <Grid ... <StackPanel> <TextBlock FontFamily="Verdana" FontSize="32">This is some text</TextBlock> <TextBlock FontFamily="Verdana" Fon

你好。 我在Vista(WPF4)上有一个奇怪的字体渲染错误

这是我在Win7上的应用程序截图

这里是Vista

XAML代码非常简单:

<Window ...
<Grid ...
<StackPanel>
   <TextBlock FontFamily="Verdana" FontSize="32">This is some text</TextBlock>
   <TextBlock FontFamily="Verdana" FontSize="24">This is some text</TextBlock>
   <TextBlock FontFamily="Verdana" FontSize="18">This is some text</TextBlock>
   <TextBlock FontFamily="Verdana" FontSize="14">This is some text</TextBlock>
</StackPanel>
</Grid>
</Window>

两个操作系统是否使用相同的语言,区域设置是否相同?可能是Verdana没有正确安装在Vista上

这仅仅是Verdana的问题吗?可能是所有人的问题。我试过吠陀那、Arial、塔荷马、泰晤士报和投石机。这是环保的。更新视频驱动程序,下一步更新DirectX。@rapt0r找到解决此问题的方法了吗?是的,驱动程序更新后一切正常。谢谢。英语操作系统和系统语言环境都设置为英语(美国)。我猜这与DirectX和WPF使用图形卡呈现文本的方式有关。你有没有用另一台装有gfx芯片组的Vista机器进行过测试?是的,大多数情况下,它在所有操作系统上都能正常工作,但有好几台电脑都有这样的缺陷。