Typeface Class
Represents a combination of FontFamily, FontWeight, FontStyle, and FontStretch.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() | Typeface(FontFamily^, FontStyle, FontWeight, FontStretch) | |
![]() | Typeface(FontFamily^, FontStyle, FontWeight, FontStretch, FontFamily^) | |
![]() | Typeface(String^) | Initializes a new instance of the Typeface class for the specified font family typeface name. |
| Name | Description | |
|---|---|---|
![]() | CapsHeight | Gets the distance from the baseline to the top of an English capital letter for the typeface. |
![]() | FaceNames | Gets a collection of culture-specific names for the Typeface. |
![]() | FontFamily | Gets the name of the font family from which the typeface was constructed. |
![]() | IsBoldSimulated | Determines whether to simulate a bold weight for the glyphs represented by the Typeface. |
![]() | IsObliqueSimulated | Determines whether to simulate an italic style for the glyphs represented by the Typeface. |
![]() | Stretch | Gets the stretch value for the Typeface. The stretch value determines whether a typeface is expanded or condensed when it is displayed. |
![]() | StrikethroughPosition | Gets a value that indicates the distance from the baseline to the strikethrough for the typeface. |
![]() | StrikethroughThickness | Gets a value that indicates the thickness of the strikethrough relative to the font em size. |
![]() | Style | Gets the style of the Typeface. |
![]() | UnderlinePosition | Gets a value that indicates the distance of the underline from the baseline for the typeface. |
![]() | UnderlineThickness | Gets a value that indicates the thickness of the underline relative to the font em size for the typeface. |
![]() | Weight | Gets the relative weight of the typeface. |
![]() | XHeight | Gets the distance from the baseline to the top of an English lowercase letter for a typeface. The distance excludes ascenders. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Gets a value that indicates whether the current typeface and the specified typeface have the same FontFamily, Style, Weight, Stretch, and fallback font values. (Overrides Object::Equals(Object^).) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as a hash function for Typeface. It is suitable for use in hashing algorithms and data structures such as a hash table.(Overrides Object::GetHashCode().) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | TryGetGlyphTypeface(GlyphTypeface^%) | Retrieves the GlyphTypeface that corresponds to the Typeface. |
A typeface is a single variation of a font within the same font family. An example of a typeface is an italic version of the "Times New Roman" font family. Typeface defines the weight, style and stretching features of a font.
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.


