Windows apps
Collapse the table of content
Expand the table of content
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.

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

System.Object
  System.Windows.Media.Fonts

[<AbstractClass>]
[<Sealed>]
type Fonts = class end

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticSystemFontFamilies

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

System_CAPS_pubpropertySystem_CAPS_staticSystemTypefaces

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetFontFamilies(String)

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

System_CAPS_pubmethodSystem_CAPS_staticGetFontFamilies(Uri)

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

System_CAPS_pubmethodSystem_CAPS_staticGetFontFamilies(Uri, String)

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

System_CAPS_pubmethodSystem_CAPS_staticGetTypefaces(String)

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

System_CAPS_pubmethodSystem_CAPS_staticGetTypefaces(Uri)

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

System_CAPS_pubmethodSystem_CAPS_staticGetTypefaces(Uri, String)

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 Style, such as italic, and Weight, 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
Show:
© 2016 Microsoft