Click or drag to resize
CanvasGlyphMetrics Fields

The CanvasGlyphMetrics type exposes the following members.

Fields
  NameDescription
Public fieldAdvanceHeight
Specifies the Y offset from the vertical origin of the current glyph to the vertical origin of the next glyph when writing vertically. Note that the term "origin" by itself denotes the horizontal origin. The vertical origin is different. Its Y coordinate is specified by verticalOriginY value, and its X coordinate is half the advanceWidth to the right of the horizontal origin.
Public fieldAdvanceWidth
Specifies the X offset from the origin of the current glyph to the origin of the next glyph when writing horizontally.
Public fieldBottomSideBearing
Specifies the vertical distance from the bottom edge of the black box to the advance height. This is positive when the bottom edge of the black box is within the layout box, or negative when the bottom edge of black box overhangs the layout box.
Public fieldDrawBounds
Specifies the bounds of the parts of the glyph are covered if the glyph is drawn.
Public fieldLeftSideBearing
Specifies the X offset from the glyph origin to the left edge of the black box. The glyph origin is the current horizontal writing position. A negative value means the black box extends to the left of the origin (often true for lowercase italic 'f').
Public fieldRightSideBearing
Specifies the X offset from the right edge of the black box to the origin of the next glyph when writing horizontally. The value is negative when the right edge of the black box overhangs the layout box.
Public fieldTopSideBearing
Specifies the vertical offset from the vertical origin to the top of the black box. Thus, a positive value adds whitespace whereas a negative value means the glyph overhangs the top of the layout box.
Public fieldVerticalOrigin
Specifies the Y coordinate of a glyph's vertical origin, in the font's design coordinate system. The y coordinate of a glyph's vertical origin is the sum of the glyph's top side bearing and the top (that is, yMax) of the glyph's bounding box.
Top
See Also