Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Fonts Class

Provides enumeration support for FontFamily and Typeface objects.

System.Object
  System.Windows.Media.Fonts

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
'Declaration
Public NotInheritable Class Fonts

The Fonts type exposes the following members.

  NameDescription
Public propertyStatic memberSystemFontFamiliesGets the collection of FontFamily objects from the default system font location.
Public propertyStatic memberSystemTypefacesGets the collection of Typeface objects from the default system font location.
Top
  NameDescription
Public methodStatic memberGetFontFamilies(String)Returns the collection of FontFamily objects from a string value that represents the location of the fonts.
Public methodStatic memberGetFontFamilies(Uri)Returns a collection of FontFamily objects from a uniform resource identifier (URI) value that represents the location of the fonts.
Public methodStatic memberGetFontFamilies(Uri, String)Returns a collection of FontFamily objects using a base uniform resource identifier (URI) value to resolve the font location.
Public methodStatic memberGetTypefaces(String)Returns the collection of Typeface objects from a string value that represents the font directory location.
Public methodStatic memberGetTypefaces(Uri)Returns a collection of Typeface objects from a uniform resource identifier (URI) value that represents the font location.
Public methodStatic memberGetTypefaces(Uri, String)Returns a collection of Typeface objects using a base uniform resource identifier (URI) value to resolve the font location.
Top

A font family is a set of fonts that have the same typeface, such as Arial, but that differ in features. These feature differences include Style, such as italic, and Weight, such as bold.

Example of typefaces that are "Times New Roman" font family members

Fonts

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft. All rights reserved.