This topic has not yet been rated - Rate this topic

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)
public static 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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.