Click or drag to resize
CanvasTextFormatGetSystemFontFamilies Method (IReadOnlyListString)
Gets a list of font families available, prioritizing the specified locales.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public static string[] GetSystemFontFamilies(
	IReadOnlyList<string> localeList


Type: System.Collections.GenericIReadOnlyListString

Return Value

Type: String

Font family names are locale-dependent. For each font, this method returns the first available of:

  • The specified list of locales, in order
  • en-us
  • Whatever is the first name enumerated for the font.

An application's environment has a list of locales ordered by user preference.

Using this in C# looks like:

using Windows.Globalization;


string[] fontFamilyNames = CanvasTextFormat.GetSystemFontFamilies(ApplicationLanguages.Languages);

Passing a null locale list is valid, and is equivalent to using the GetSystemFontFamilies overload.

See Also