List of Built-in WPF Fonts
Asked Answered
T

3

43

I'm looking for the list of "safe" font families to use in a WPF application - font families that should be installed on all clients machines capable of running WPF. Silverlight has a well defined list of such (listed on MSDN it comes with 25 fonts such as Arial, Arial Black, Calibri etc).

Is there such a list for WPF or will I have to embed custom fonts to make sure all users of the application will see the same font type?

Tolly answered 9/8, 2011 at 9:2 Comment(0)
L
54

You can find a list of all fonts that ship with any given Microsoft product on the MS Typography website ("Fonts by Product"):

http://www.microsoft.com/typography/fonts/

WPF 4 requires at least Windows XP SP3 with IE 5.01, so the fonts you can count on are the following:

 - Aharoni
 - Andalus
 - AngsanaUPC
 - Angsana New
 - Arabic Transparent
 - Arial
 - Arial Black
 - Batang
 - BrowalliaUPC
 - Browallia New
 - Comic Sans MS
 - CordiaUPC
 - Cordia New
 - Courier New
 - David
 - DFKai-SB
 - DilleniaUPC
 - Estrangelo Edessa
 - EucrosiaUPC
 - Fixed Miriam Transparent
 - Franklin Gothic
 - FrankRuehl
 - FreesiaUPC
 - Gautami
 - Georgia
 - Gulim
 - Impact
 - IrisUPC
 - JasmineUPC
 - KaiTi
 - Kartika
 - KodchiangUPC
 - Latha
 - Levenim MT
 - LilyUPC
 - Lucida Console
 - Lucida Sans
 - Lucida Sans Unicode
 - Mangal
 - Marlett
 - Microsoft Sans Serif
 - PMingLiU
 - Miriam
 - Miriam Fixed
 - MS Gothic
 - MS Mincho
 - MV Boli
 - Narkisim
 - Palatino Linotype
 - PMingLiU-ExtB
 - Raavi
 - Rod
 - Shruti
 - SimHei
 - Simplified Arabic Fixed
 - Simplified Arabic Fixed
 - SimSun-ExtB
 - Sylfaen
 - Symbol
 - Tahoma
 - Times New Roman
 - Traditional Arabic
 - Trebuchet MS
 - Tunga
 - Verdana
 - Vrinda
 - Webdings
 - Wingdings

(based on filtering this list)

However, these pages note that some fonts might not be installed. I think Asian scripts are generally not installed unless needed -- perhaps someone else knows the details here?

Longwise answered 9/8, 2011 at 9:29 Comment(2)
Dang. All dead links.Oshiro
For other googlers that stumble across this, these links are dead however, here is an updated link to find what you're looking for: learn.microsoft.com/en-us/typography/font-list/indexBullbat
C
5

There is a way simpler way to list all the default fonts.

using System.Windows.Media;
//... 

//Somewhere inside the window's class (e.g. constructor)   
var fontList = Fonts.SystemFontFamilies;

You can also then bind this to a ComboBox like so:

//...Inside of window constructor
this.DataContext = fontList

Here you can find more details: http://vbcity.com/blogs/xtab/archive/2009/11/30/wpf-how-to-list-select-and-apply-fonts.aspx

Cluster answered 3/9, 2020 at 8:15 Comment(0)
U
4

As @Chris says, the updated reference link of Microsoft Fonts and supported products is this: https://learn.microsoft.com/en-us/typography/font-list/index

Your choice should be based on your target framework version, I'm not sure you can find a 100% safe font...

Ursuline answered 28/3, 2018 at 12:44 Comment(2)
I don't have half of these fonts installed, not sure what that list is good for..?Inrush
@Rugbrød I guess it' pretty normal to not have many of them, it depends from your O.S.; take a look to this page: learn.microsoft.com/en-us/typographyUrsuline

© 2022 - 2024 — McMap. All rights reserved.