Typeface.TryGetGlyphTypeface Method (GlyphTypeface)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the GlyphTypeface that corresponds to the Typeface.

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

public bool TryGetGlyphTypeface(
	out GlyphTypeface glyphTypeface


Type: System.Windows.Media.GlyphTypeface

GlyphTypeface object that corresponds to this typeface, or null if the typeface was constructed from a composite font.

Return Value

Type: System.Boolean

true if the out parameter is set to a GlyphTypeface value; otherwise, false.

A GlyphTypeface is font face that directly corresponds to a font file on the disk. A Typeface, however, is a representation of font face.

.NET Framework
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top