Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GlyphTypeface.LeftSideBearings Property

 

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.

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

public IDictionary<ushort, double> LeftSideBearings { get; }

Property Value

Type: System.Collections.Generic.IDictionary<UInt16, Double>

An IDictionary<TKey, TValue> object that contains key/value pairs that represent distance information for the glyphs. The key is a UInt16 that identifies the glyph index. The value is a Double that represents the distance.

The LeftSideBearings value is positive when the left edge of the black box is within the alignment rectangle defined by the advance width and font cell height.

The LeftSideBearings value is negative when the left edge of the black box overhangs the alignment rectangle.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft