Skip to main content
Fonts Class
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides enumeration support for FontFamily and Typeface objects.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

SystemObject
  System.Windows.MediaFonts

public static class Fonts
public ref class Fonts abstract sealed 
[<AbstractClass>]
[<Sealed>]
type Fonts = class end
Public NotInheritable Class Fonts
NameDescription
System_CAPS_pubproperty System_CAPS_static

Gets the collection of FontFamily objects from the default system font location.

System_CAPS_pubproperty System_CAPS_static

Gets the collection of Typeface objects from the default system font location.

NameDescription
System_CAPS_pubmethod System_CAPS_static GetFontFamilies

Returns the collection of FontFamily objects from a string value that represents the location of the fonts.

System_CAPS_pubmethod System_CAPS_static GetFontFamilies

Returns a collection of FontFamily objects from a uniform resource identifier (URI) value that represents the location of the fonts.

System_CAPS_pubmethod System_CAPS_static GetFontFamilies

Returns a collection of FontFamily objects using a base uniform resource identifier (URI) value to resolve the font location.

System_CAPS_pubmethod System_CAPS_static GetTypefaces

Returns the collection of Typeface objects from a string value that represents the font directory location.

System_CAPS_pubmethod System_CAPS_static GetTypefaces

Returns a collection of Typeface objects from a uniform resource identifier (URI) value that represents the font location.

System_CAPS_pubmethod System_CAPS_static GetTypefaces

Returns a collection of Typeface objects using a base uniform resource identifier (URI) value to resolve the font location.

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 , such as italic, and , such as bold.

Fonts

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

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top