Interface IMetricsHeader
Defines the contract for the metrics header of a font face.
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public interface IMetricsHeader
Properties
| Edit this page View SourceAdvanceHeightMax
Gets the maximum advance height, in font units, for all glyphs in this face.This is only relevant for vertical layouts, and is set to LineHeight for fonts that do not provide vertical metrics.
Declaration
short AdvanceHeightMax { get; }
Property Value
Type | Description |
---|---|
short |
AdvanceWidthMax
Gets the maximum advance width, in font units, for all glyphs in this face.
Declaration
short AdvanceWidthMax { get; }
Property Value
Type | Description |
---|---|
short |
Ascender
Gets the typographic ascender of the face, expressed in font units.
Declaration
short Ascender { get; }
Property Value
Type | Description |
---|---|
short |
Descender
Gets the typographic descender of the face, expressed in font units.
Declaration
short Descender { get; }
Property Value
Type | Description |
---|---|
short |
LineGap
Gets the typographic line gap of the face, expressed in font units. This field should be combined with the Ascender and Descender values to determine default line spacing.
Declaration
short LineGap { get; }
Property Value
Type | Description |
---|---|
short |
LineHeight
Gets the typographic line spacing of the face, expressed in font units.
Declaration
short LineHeight { get; }
Property Value
Type | Description |
---|---|
short |