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

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -