0
我有一个WPF组合框被结合到WPF组合框字体绑定FileFormatException
Me.fontComboFast.ItemsSource = Fonts.SystemFontFamilies
<ComboBox x:Name="fontComboFast">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" FontFamily="{Binding}" FontSize="15" Height="20"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
出现以下异常。如何清除任何无效字体的Fonts.SystemFontFamilies?
'file:/// C:/ Program Files(x86)/ Common Files/Adobe/SING/AssocCache/Generic.otf'文件不符合预期的文件格式规范。