This documentation is archived and is not being maintained.

Typeface Members

Represents a combination of FontFamily, FontWeight, FontStyle, and FontStretch.

The Typeface type exposes the following members.

  NameDescription
Public method Typeface Overloaded. Initializes a new instance of the Typeface class.
Top

  NameDescription
Public method Equals 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).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method 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().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetGlyphTypeface Retrieves the GlyphTypeface that corresponds to the Typeface.
Top

  NameDescription
Public property CapsHeight Gets the distance from the baseline to the top of an English capital letter for the typeface.
Public property FaceNames Gets a collection of culture-specific names for the Typeface.
Public property FontFamily Gets the name of the font family from which the typeface was constructed.
Public property IsBoldSimulated Determines whether to simulate a bold weight for the glyphs represented by the Typeface.
Public property IsObliqueSimulated Determines whether to simulate an italic style for the glyphs represented by the Typeface.
Public property Stretch Gets the stretch value for the Typeface. The stretch value determines whether a typeface is expanded or condensed when it is displayed.
Public property StrikethroughPosition Gets a value that indicates the distance from the baseline to the strikethrough for the typeface.
Public property StrikethroughThickness Gets a value that indicates the thickness of the strikethrough relative to the font em size.
Public property Style Gets the style of the Typeface.
Public property UnderlinePosition Gets a value that indicates the distance of the underline from the baseline for the typeface.
Public property UnderlineThickness Gets a value that indicates the thickness of the underline relative to the font em size for the typeface.
Public property Weight Gets the relative weight of the typeface.
Public property XHeight Gets the distance from the baseline to the top of an English lowercase letter for a typeface. The distance excludes ascenders.
Top
Show: