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

FamilyTypeface Class

Specifies the details of a single typeface supported by a FontFamily.


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

public class FamilyTypeface
<FamilyTypeface .../>

The FamilyTypeface type exposes the following members.

Public methodFamilyTypefaceInitializes a new instance of the FamilyTypeface class.

Public propertyAdjustedFaceNamesGets a collection of localized face names adjusted by the font differentiator.
Public propertyCapsHeightGets or sets the distance from baseline to top of an English capital, relative to em size.
Public propertyDeviceFontCharacterMetricsGets the collection of character metrics for a device font family typeface.
Public propertyDeviceFontNameGets or sets the name or unique identifier for a device font family typeface.
Public propertyStretchGets or sets the designed stretch of the font family typeface.
Public propertyStrikethroughPositionGets or sets the position of the strikethrough value relative to the baseline. The value is also relative to em size.
Public propertyStrikethroughThicknessGets or sets the thickness of the strikethrough relative to em size.
Public propertyStyleGets or sets the style of the font family typeface design.
Public propertyUnderlinePositionGets or sets the position of underline value relative to the baseline. The value is also relative to em size.
Public propertyUnderlineThicknessGets or sets the thickness of underline relative to em size.
Public propertyWeightGets or sets the designed weight of this font family typeface.
Public propertyXHeightGets or sets the Western x-height relative to em size.

Public methodEquals(FamilyTypeface)Compares two font family typefaces for equality.
Public methodEquals(Object)Compares two font family typefaces for equality. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a FamilyTypeface object. The GetHashCode method is suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

There are as many FamilyTypeface objects as there are typefaces supported by the system.

.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.

Community Additions

© 2017 Microsoft