locked
Emebbed Resource(Font file)

    Question

  • Hi,

    I want to use custom font in my store app., but if I build my font file as "Content", it will deploy the original font file to the disk. I don't want that. So I try to build the font file as "Embedded Resource". But I find a problem, I can get the font file's stream, but I cannot convert the stream to FontFamily for UI Control to use. How should I do? Is there any other way to achieve my idea?

    Thx.

    Thursday, February 20, 2014 2:21 AM

Answers

  • Maybe you could do a temporary creation of the font file, read from that, then delete that when the app exits?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, February 20, 2014 1:30 PM
    Moderator