Assembly: PresentationCore (in PresentationCore.dll)
|Typeface(FontFamily, FontStyle, FontWeight, FontStretch)|
|Typeface(FontFamily, FontStyle, FontWeight, FontStretch, FontFamily)|
Initializes a new instance of theclass for the specified font family typeface name.
Gets the distance from the baseline to the top of an English capital letter for the typeface.
Gets a collection of culture-specific names for the.
Gets the name of the font family from which the typeface was constructed.
Determines whether to simulate a bold weight for the glyphs represented by the.
Determines whether to simulate an italic style for the glyphs represented by the.
Gets the stretch value for the. The stretch value determines whether a typeface is expanded or condensed when it is displayed.
Gets a value that indicates the distance from the baseline to the strikethrough for the typeface.
Gets a value that indicates the thickness of the strikethrough relative to the font em size.
Gets the style of the.
Gets a value that indicates the distance of the underline from the baseline for the typeface.
Gets a value that indicates the thickness of the underline relative to the font em size for the typeface.
Gets the relative weight of the typeface.
Gets the distance from the baseline to the top of an English lowercase letter for a typeface. The distance excludes ascenders.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for Object.GetHashCode().). It is suitable for use in hashing algorithms and data structures such as a hash table.(Overrides
Returns a string that represents the current object.(Inherited from Object.)
Retrieves the GlyphTypeface that corresponds to the .
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.
' Return the typeface collection for the fonts in the selected URI location. Dim typefaces As System.Collections.Generic.ICollection(Of Typeface) = Fonts.GetTypefaces("file:///C:\Windows\Fonts\#Georgia") ' Enumerate the typefaces in the collection. For Each face As Typeface In typefaces ' Separate the URI directory source info from the font family name. Dim familyName() As String = face.FontFamily.Source.Split("#"c) ' Add the font family name, weight, and style values to the typeface combo box. comboBoxTypeface.Items.Add(familyName(familyName.Length - 1) & " " & face.Weight.ToString & " " & face.Style.ToString) Next face comboBoxTypeface.SelectedIndex = 0
Available since 3.0
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.