MahApps.Metro字体渲染很糟糕 - 我做错了什么?

时间:2014-05-11 21:25:30

标签: wpf mahapps.metro

我几个星期以来一直在使用MahApps.Metro,我无法弄清楚为什么字体看起来如此可怕。我只是使用Segoe UI和Segoe UI Semilight。

enter image description here

2 个答案:

答案 0 :(得分:10)

尝试在主窗口xaml中设置TextOptions.TextFormattingMode =“Display”和/或TextOptions.TextRenderingMode =“ClearType”。

答案 1 :(得分:1)

乔尔的建议是解决方案!

<controls:MetroWindow xmlns:views="clr-namespace:Cmc.Installer.App.Views"  
        x:Class="Cmc.Installer.App.Views.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        mc:Ignorable="d"
        ShowIconOnTitleBar="False"
        BorderThickness="1"
        BorderBrush="Gray"
        EnableDWMDropShadow="True"
        ResizeMode="CanResizeWithGrip"
        Height="768"
        Width="1024"
        MinHeight="600"
        MinWidth="800"
        WindowStartupLocation="CenterScreen"
        Title="{Binding Path=AppTitle}" TitleCaps="False"
        Icon="..\Images\campusvue_student_Icon.ico"
        Style="{DynamicResource CleanWindowStyleKey}" 
        RenderOptions.ClearTypeHint="Enabled"
        TextOptions.TextFormattingMode="Display">