none
True type font not recognized by WPF RRS feed

  • Question

  •  

    Hello,

     

    We are using a font called "Bitsumishi." This is a true type font (which is supported by WPF). However, WPF falls back to a different font. Is there a way to force WPF engine to use this font?

     

    Also, when the application gets shipped, the end users may or may not have this font. Is it possible to embed a font type as a resource and use it dynamically?

     

    Thank you in advance for your help.

     

    Regards,

    Peter

     

    Monday, December 31, 2007 9:38 PM

Answers

  •  Peter wrote:

    We are using a font called "Bitsumishi." This is a true type font (which is supported by WPF). However, WPF falls back to a different font. Is there a way to force WPF engine to use this font?


    Have you verified if "Bitsumishi" font is installed on your machine?
    WPF supports true type font, so as long as the font is installed, WPF should be able to display it.

     Peter wrote:

    Also, when the application gets shipped, the end users may or may not have this font. Is it possible to embed a font type as a resource and use it dynamically?


    FontFamily can let you directly specify the pack uri of the font embeded in your project in XAML as follows:

    <TextBlock FontFamily="pack://application:,,,/component/MSGOTHIC.TTC" Text="Embeded Font Family"/>

    Hope this helps

    Wednesday, January 2, 2008 9:53 AM

All replies

  •  Peter wrote:

    We are using a font called "Bitsumishi." This is a true type font (which is supported by WPF). However, WPF falls back to a different font. Is there a way to force WPF engine to use this font?


    Have you verified if "Bitsumishi" font is installed on your machine?
    WPF supports true type font, so as long as the font is installed, WPF should be able to display it.

     Peter wrote:

    Also, when the application gets shipped, the end users may or may not have this font. Is it possible to embed a font type as a resource and use it dynamically?


    FontFamily can let you directly specify the pack uri of the font embeded in your project in XAML as follows:

    <TextBlock FontFamily="pack://application:,,,/component/MSGOTHIC.TTC" Text="Embeded Font Family"/>

    Hope this helps

    Wednesday, January 2, 2008 9:53 AM
  • Hi Marco,

     

    Thank you for your help.

     

    I have verified that Bitsumishi is indeed available on the machine. Microsoft Word correctly displays it. However, it does not seem to work with WPF.

     

    Thank you for the other useful tip on FontFamily.

     

    Regards,

    Peter

     

    Wednesday, January 9, 2008 6:31 AM
  •  Peter wrote:

    I have verified that Bitsumishi is indeed available on the machine. Microsoft Word correctly displays it. However, it does not seem to work with WPF.


    Have you tried to explicitly use Bitsumishi font in WPF application? you can embed this font into your project as resource file, and use the following syntax to access it:

    <TextBlock FontFamily="pack://application:,,,/component/Bitsumishi.TTC" Text="Embeded Font Family"/>

    Hope this helps
    Wednesday, January 9, 2008 8:10 AM