GlyphTypeface Class
TOC
Collapse the table of content
Expand the table of content

GlyphTypeface Class

 

Specifies a physical font face that corresponds to a font file on the disk.

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

System.Object
  System.Windows.Media.GlyphTypeface

public class GlyphTypeface : ISupportInitialize

NameDescription
System_CAPS_pubmethodGlyphTypeface()

Initializes a new instance of the GlyphTypeface class.

System_CAPS_pubmethodGlyphTypeface(Uri)

Initializes a new instance of the GlyphTypeface class using the specified font file location.

System_CAPS_pubmethodGlyphTypeface(Uri, StyleSimulations)

Initializes a new instance of the GlyphTypeface class using the specified font file location and StyleSimulations value.

NameDescription
System_CAPS_pubpropertyAdvanceHeights

Gets the advance heights for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyAdvanceWidths

Gets the advance widths for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyBaseline

Gets the baseline value for the GlyphTypeface.

System_CAPS_pubpropertyBottomSideBearings

Gets the distance from bottom edge of the black box to the bottom end of the advance vector for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyCapsHeight

Gets the distance from the baseline to the top of an English capital, relative to em size, for the GlyphTypeface object.

System_CAPS_pubpropertyCharacterToGlyphMap

Gets the nominal mapping of a Unicode code point to a glyph index as defined by the font 'CMAP' table.

System_CAPS_pubpropertyCopyrights

Gets the copyright information for the GlyphTypeface object.

System_CAPS_pubpropertyDescriptions

Gets the description information for the GlyphTypeface object.

System_CAPS_pubpropertyDesignerNames

Gets the designer information for the GlyphTypeface object.

System_CAPS_pubpropertyDesignerUrls

Gets the designer URL information for the GlyphTypeface object.

System_CAPS_pubpropertyDistancesFromHorizontalBaselineToBlackBoxBottom

Gets the offset value from the horizontal Western baseline to the bottom of the glyph black box for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyEmbeddingRights

Gets the font embedding permission for the GlyphTypeface object.

System_CAPS_pubpropertyFaceNames

Gets the face name for the GlyphTypeface object.

System_CAPS_pubpropertyFamilyNames

Gets the family name for the GlyphTypeface object.

System_CAPS_pubpropertyFontUri

Gets or sets the URI for the GlyphTypeface object.

System_CAPS_pubpropertyGlyphCount

Gets the number of glyphs for the GlyphTypeface object.

System_CAPS_pubpropertyHeight

Gets the height of the character cell relative to the em size.

System_CAPS_pubpropertyLeftSideBearings

Gets the distance from the leading end of the advance vector to the left edge of the black box for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyLicenseDescriptions

Gets the font license description information for the GlyphTypeface object.

System_CAPS_pubpropertyManufacturerNames

Gets the font manufacturer information for the GlyphTypeface object.

System_CAPS_pubpropertyRightSideBearings

Gets the distance from the right edge of the black box to the right end of the advance vector for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertySampleTexts

Gets the sample text information for the GlyphTypeface object.

System_CAPS_pubpropertyStretch

Gets the FontStretch value for the GlyphTypeface object.

System_CAPS_pubpropertyStrikethroughPosition

Gets a value that indicates the distance from the baseline to the strikethrough for the typeface.

System_CAPS_pubpropertyStrikethroughThickness

Gets a value that indicates the thickness of the strikethrough relative to the font em size.

System_CAPS_pubpropertyStyle

Gets the style for the GlyphTypeface object.

System_CAPS_pubpropertyStyleSimulations

Gets or sets the StyleSimulations for the GlyphTypeface object.

System_CAPS_pubpropertySymbol

Gets a value that indicates whether the GlyphTypeface font conforms to Unicode encoding.

System_CAPS_pubpropertyTopSideBearings

Gets the distance from the top end of the vertical advance vector to the top edge of the black box for the glyphs represented by the GlyphTypeface object.

System_CAPS_pubpropertyTrademarks

Gets the trademark notice information for the GlyphTypeface object.

System_CAPS_pubpropertyUnderlinePosition

Gets the position of the underline in the GlyphTypeface.

System_CAPS_pubpropertyUnderlineThickness

Gets the thickness of the underline relative to em size.

System_CAPS_pubpropertyVendorUrls

Gets the vendor URL information for the GlyphTypeface object.

System_CAPS_pubpropertyVersion

Gets the font face version interpreted from the font's 'NAME' table.

System_CAPS_pubpropertyVersionStrings

Gets the version string information for the GlyphTypeface object interpreted from the font's 'NAME' table.

System_CAPS_pubpropertyWeight

Gets the designed weight of the font represented by the GlyphTypeface object.

System_CAPS_pubpropertyWin32FaceNames

Gets the Win32 face name for the font represented by the GlyphTypeface object.

System_CAPS_pubpropertyWin32FamilyNames

Gets the Win32 family name for the font represented by the GlyphTypeface object.

System_CAPS_pubpropertyXHeight

Gets the Western x-height relative to em size for the font represented by the GlyphTypeface object.

NameDescription
System_CAPS_pubmethodComputeSubset(ICollection<UInt16>)

Returns the binary image of the font subset based on a specified collection of glyphs.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current GlyphTypeface object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetFontStream()

Returns the font file stream represented by the GlyphTypeface object.

System_CAPS_pubmethodGetGlyphOutline(UInt16, Double, Double)

Returns a Geometry value describing the path for a single glyph in the font.

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for GlyphTypeface. (Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The GlyphTypeface object is a low level text object that corresponds to a single face of a font family as represented by an OpenType font file, or serialized as a block of memory in a document. The correct GlyphTypeface to use for a run of characters in a given logical font is normally determined by the WPF font system and recorded in the GlyphRun objects generated by the FormattedText object and line formatting text APIs.

The GlyphTypeface provides properties and methods for:

  • Obtaining font face common metrics, such as the ratio of ascent and descent to em size.

  • Obtaining metrics, outlines, and bitmaps for individual glyphs.

  • Serialization in a document.

The following list describes the type of application scenarios that illustrate the value of using the low-level control that the GlyphTypeface object provides.

  • A fixed format document generator may use the GlyphTypeface to obtain a binary image of the font for embedding in a document container

  • A printer driver may use the GlyphTypeface to obtain font glyph outlines or bitmaps, or the entire font image for sending to the printer.

  • A GlyphTypeface viewer application may use the GlyphTypeface to obtain metric and bitmap information.

Each glyph defines metrics that specify how it aligns with other Glyphs. The following graphic defines metric values for glyph characters.

Diagraph of glyph measurements

Metric values of glyph characters

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

Return to top
Show:
© 2016 Microsoft