0
我想在我的通用Windows應用程序中使用自定義的otf
字體,但我無法使其工作。如何使用此字體?
我目前我xaml
使用此:
<TextBlock
FontSize="16"
Text="Question"
FontFamily="../Assets/Fonts/NeoSansStdMedium.otf#Neo Sans Std Medium"/>
字體位於Assets/Fonts
,像這樣:
Project.Windows (Windows 8.1)
> Assets
> Fonts
> NeoSansStdMedium.otf
而Windows Fontviewer顯示字體名稱:
Neo Sans Std Medium
那麼我在做什麼錯了?
你有沒有嵌入字體(生成操作) –
@ErnodeWeerd在屬性'建設Action'是'Content'。將'Build Action'設置爲'Embedded Resource'不能解決它。 – vrwim