wpf - How can I use this font? -
i want use custom otf
font in universal windows application, can't work.
i using in xaml
:
<textblock fontsize="16" text="question" fontfamily="../assets/fonts/neosansstdmedium.otf#neo sans std medium"/>
the font located in assets/fonts
, so:
project.windows (windows 8.1) > assets > fonts > neosansstdmedium.otf
and windows fontviewer shows font name as:
neo sans std medium
so doing wrong?
the font name after # has match font name, , in case apparently medium
not part of name...
some more info: set .otf
file's properties build action: content
, copy output directory: not copy
.
the xaml excerpt looks this:
<textblock fontsize="16" text="question" fontfamily="../assets/fonts/neosansstdmedium.otf#neo sans std"/>
Comments
Post a Comment