none
The font used in my WPF app

    Question

  • I'm humming along with my first WPF app.  Defining controls, custom controls, binding data, etc.  However, I've got one question about the font family used in the WPF.  I'm developing this on Windows 7, and either Expression Blend or VS 2008 (I'm not sure which) selected a font family of Segoe UI.  I don't care what's used, that looks as good to me as any other, but I'm wondering how this will play on Windows XP?  The majority of our machines are running Windows XP with either SP2 or SP3.  Does WPF have anything like what's in CSS development for the Web in which you can specify a list of font families to use, and then it's up to the browser, running on the machine, to determine what font's are available to it and then render in that font?  And if so, how's that work?

     


    Rod
    Wednesday, May 19, 2010 9:08 PM

Answers

  • Here is some info on the wpf font system:http://blogs.msdn.com/text/archive/2007/04/23/wpf-font-selection-model.aspx

     

    I believe that if the font isn't present, WPF will fall back to the global UI font. You can embed the font into your application by checking the embed box below the font selection area.  This will make the font files part of your application.

    Please note that I know nothing about font licensing, and there are probably implications to distributing a font such as Segoe UI.  That said, there are a number of MS applications that install Segoe UI.

     

    http://en.wikipedia.org/wiki/Segoe#Segoe_UI

     

     

    • Marked as answer by Rod at Work Thursday, May 20, 2010 2:45 PM
    Thursday, May 20, 2010 12:42 PM
    Moderator