FontFamily Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents a family of related fonts.
Assembly: System.Windows (in System.Windows.dll)
The FontFamily type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | FontFamily | Initializes a new instance of the FontFamily class from the specified font family string. |
| Name | Description | |
|---|---|---|
![]() | Equals | Gets a value that indicates whether the current font family object and the specified font family object are the same. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for FontFamily. (Overrides Object::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string representation of this FontFamily. (Overrides Object::ToString().) |
A font family is a set of typefaces that share the same family name, such as "Times New Roman", but that differ in features. These font family feature differences typically include font style, such as italic, and font weight, such as bold. For a full list of supported fonts in Windows Phone, see Font and language configuration support for Windows Phone 8.
To ensure consistency, you typically specify the font family using a theme resource. By default, the font family for a new page in a Windows Phone application is set to the following:
FontFamily="{StaticResource PhoneFontFamilyNormal}"
For a list of the theme resource font families, see Theme resources for Windows Phone.
XAML Attribute Usage
<object FontFamily="fontFamilyName" />
-or-
<object FontFamily="{StaticResource phoneFontFamily}" />


