// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts {
///
/// Defines the contract for the metrics header of a font face.
///
public interface IMetricsHeader
{
///
/// Gets the typographic ascender of the face, expressed in font units.
///
public short Ascender { get; }
///
/// Gets the typographic descender of the face, expressed in font units.
///
public short Descender { get; }
///
/// Gets the typographic line gap of the face, expressed in font units.
/// This field should be combined with the and
/// values to determine default line spacing.
///
public short LineGap { get; }
///
/// Gets the typographic line spacing of the face, expressed in font units.
///
public short LineHeight { get; }
///
/// Gets the maximum advance width, in font units, for all glyphs in this face.
///
public short AdvanceWidthMax { get; }
///
/// 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 for
/// fonts that do not provide vertical metrics.
///
public short AdvanceHeightMax { get; }
}
}