How can I use this font?

vrwim

I want to use a custom otf font in my Universal Windows Application, but I can't get it to work.

I am currently using this in my xaml:

<TextBlock
    FontSize="16"
    Text="Question"
    FontFamily="../Assets/Fonts/NeoSansStdMedium.otf#Neo Sans Std Medium"/>

The font is located in Assets/Fonts, like so:

Project.Windows (Windows 8.1)
  > Assets
      > Fonts
          > NeoSansStdMedium.otf

And Windows Fontviewer shows the font name as:

Neo Sans Std Medium

So what am I doing wrong?

vrwim

The font name after the # has to match the font name, and in this case apparently the Medium is not part of the name...

Some more info: I set the .otf file's properties to Build Action: Content and Copy to Output Directory: Do not Copy.

The XAML excerpt now looks like this:

<TextBlock
    FontSize="16"
    Text="Question"
    FontFamily="../Assets/Fonts/NeoSansStdMedium.otf#Neo Sans Std"/>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How can I use Google's Roboto font on a website?

From Dev

How can I use a custom font in the input area of an input method?

From Dev

Ugly fonts in Netbeans - How can i make it use the system font?

From Dev

How can I use the font "Glyphicons" with the FPDF library?

From Dev

Ugly fonts in Netbeans - How can i make it use the system font?

From Dev

How can I use Font Awesome in Photoshop and Fireworks?

From Dev

How can I use the Lucida Grande font in Windows?

From Dev

How can I use the font "Glyphicons" with the FPDF library?

From Dev

How can I use a font icon as a background image?

From Dev

How can I use Font Awesome (or other font icons) instead of the jQuery sprites in Primefaces DataTable?

From Dev

Which font formats can I use?

From Dev

Which font formats can I use?

From Dev

Can I use the Ubuntu font in a proprietary application?

From Dev

How can I use icon in drop down menu using Bootstrap and Font Awesome

From Dev

How can I force my website to use a Google font instead of a locally one with the same name?

From Dev

How can I use MathJax font "Gyre-Pagella" and "Computer Modern Bright"?

From Dev

How can I use icon in drop down menu using Bootstrap and Font Awesome

From Dev

How can I use Monaco Linux True Type Font in IntelliJ IDEA?

From Dev

How can I configure /etc/kmscon/kmscon.conf to use specific a) font and b) keyboard layout?

From Dev

How can I use Roboto font via XML and styles tag only in android

From Dev

How can I load a web font such as font awesome on page load?

From Dev

How can i get list of font family(or Name of Font) in matplotlib

From Dev

How can i get list of font family(or Name of Font) in matplotlib

From Dev

How can I change the cmd font and font size with a command?

From Dev

How can I save a font/font height combination for easy access?

From Dev

How can I increase the font size in WebStorm?

From Dev

How can I assign a color to a font in EPPlus?

From Dev

How can I get the style of a font?

From Dev

How can i configure font size in gitk?

Related Related

  1. 1

    How can I use Google's Roboto font on a website?

  2. 2

    How can I use a custom font in the input area of an input method?

  3. 3

    Ugly fonts in Netbeans - How can i make it use the system font?

  4. 4

    How can I use the font "Glyphicons" with the FPDF library?

  5. 5

    Ugly fonts in Netbeans - How can i make it use the system font?

  6. 6

    How can I use Font Awesome in Photoshop and Fireworks?

  7. 7

    How can I use the Lucida Grande font in Windows?

  8. 8

    How can I use the font "Glyphicons" with the FPDF library?

  9. 9

    How can I use a font icon as a background image?

  10. 10

    How can I use Font Awesome (or other font icons) instead of the jQuery sprites in Primefaces DataTable?

  11. 11

    Which font formats can I use?

  12. 12

    Which font formats can I use?

  13. 13

    Can I use the Ubuntu font in a proprietary application?

  14. 14

    How can I use icon in drop down menu using Bootstrap and Font Awesome

  15. 15

    How can I force my website to use a Google font instead of a locally one with the same name?

  16. 16

    How can I use MathJax font "Gyre-Pagella" and "Computer Modern Bright"?

  17. 17

    How can I use icon in drop down menu using Bootstrap and Font Awesome

  18. 18

    How can I use Monaco Linux True Type Font in IntelliJ IDEA?

  19. 19

    How can I configure /etc/kmscon/kmscon.conf to use specific a) font and b) keyboard layout?

  20. 20

    How can I use Roboto font via XML and styles tag only in android

  21. 21

    How can I load a web font such as font awesome on page load?

  22. 22

    How can i get list of font family(or Name of Font) in matplotlib

  23. 23

    How can i get list of font family(or Name of Font) in matplotlib

  24. 24

    How can I change the cmd font and font size with a command?

  25. 25

    How can I save a font/font height combination for easy access?

  26. 26

    How can I increase the font size in WebStorm?

  27. 27

    How can I assign a color to a font in EPPlus?

  28. 28

    How can I get the style of a font?

  29. 29

    How can i configure font size in gitk?

HotTag

Archive