如果安裝了我們的設計,我們的設計更喜歡使用Century Gothic,但如果它沒有可用的話,則會回退到Arial或Lucidia。這在大部分情況下工作正常,除非機器沒有安裝世紀哥特,但沒有有Century(這似乎是很多沒有Office的XP機器)。 「有用地」用世紀哥特替代世紀,這是可怕的,並且是襯線字體,完全忽略了我們的後備字體。使用Century取代世紀哥特王朝的WPF
這是容易複製由與世紀,而不是世紀的哥特式機器,然後創建一個TextBlock如:
<TextBlock FontFamily="Century Gothic, Wingdings">Should be gibberish</TextBlock>
它應該顯示爲亂碼宋體,而是它顯示難看,但可讀的世紀。
我試過在compositefont包裹世紀的哥特式,但具有相同的問題:
<FontFamily
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/composite-font"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:System="clr-namespace:System;assembly=mscorlib">
<FontFamily.FamilyNames>
<System:String x:Key="en-US">CenturyGothic</System:String>
</FontFamily.FamilyNames>
<FontFamily.FamilyTypefaces>
<FamilyTypeface Weight="Normal" Stretch="Normal" Style="Normal" />
<FamilyTypeface Weight="Bold" Stretch="Normal" Style="Normal" />
</FontFamily.FamilyTypefaces>
<FontFamily.FamilyMaps>
<FontFamilyMap Target="Century Gothic" Scale="1" />
</FontFamily.FamilyMaps>
</FontFamily>
嵌入字體不是一個選項(許可) - 有什麼辦法來強制其忽略世紀,還是我辭職改變它使用不同的字體?
編輯:我剛剛嘗試過使用FontFace =「'世紀哥特式',Wingdings」,但從未顯示世紀哥特式,即使它已安裝。
我無法確定,但字體選擇模型在http://blogs.msdn.com/b/text/archive/2007/04/23/wpf-font-selection-model中的PDf中概述。 aspx。雖然這可能沒有太大的幫助,但我的目光掠過,只是想看看它。 –