Fonts Class
.NET Framework 4.5
Provides enumeration support for FontFamily and Typeface objects.
Namespace: System.Windows.Media
Assembly: PresentationCore (in PresentationCore.dll)
The Fonts type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | SystemFontFamilies | Gets the collection of FontFamily objects from the default system font location. |
![]() ![]() | SystemTypefaces | Gets the collection of Typeface objects from the default system font location. |
| Name | Description | |
|---|---|---|
![]() ![]() | GetFontFamilies(String) | Returns the collection of FontFamily objects from a string value that represents the location of the fonts. |
![]() ![]() | GetFontFamilies(Uri) | Returns a collection of FontFamily objects from a uniform resource identifier (URI) value that represents the location of the fonts. |
![]() ![]() | GetFontFamilies(Uri, String) | Returns a collection of FontFamily objects using a base uniform resource identifier (URI) value to resolve the font location. |
![]() ![]() | GetTypefaces(String) | Returns the collection of Typeface objects from a string value that represents the font directory location. |
![]() ![]() | GetTypefaces(Uri) | Returns a collection of Typeface objects from a uniform resource identifier (URI) value that represents the font location. |
![]() ![]() | GetTypefaces(Uri, String) | Returns a collection of Typeface objects using a base uniform resource identifier (URI) value to resolve the font location. |
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.

