• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Class HorizontalMetrics

    Represent the metrics of a font face specific to horizontal text.

    Inheritance
    object
    HorizontalMetrics
    Implements
    IMetricsHeader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public class HorizontalMetrics : IMetricsHeader

    Properties

    | Edit this page View Source

    AdvanceHeightMax

    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
    public short AdvanceHeightMax { get; }
    Property Value
    Type Description
    short
    | Edit this page View Source

    AdvanceWidthMax

    Gets the maximum advance width, in font units, for all glyphs in this face.

    Declaration
    public short AdvanceWidthMax { get; }
    Property Value
    Type Description
    short
    | Edit this page View Source

    Ascender

    Gets the typographic ascender of the face, expressed in font units.

    Declaration
    public short Ascender { get; }
    Property Value
    Type Description
    short
    | Edit this page View Source

    Descender

    Gets the typographic descender of the face, expressed in font units.

    Declaration
    public short Descender { get; }
    Property Value
    Type Description
    short
    | Edit this page View Source

    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
    public short LineGap { get; }
    Property Value
    Type Description
    short
    | Edit this page View Source

    LineHeight

    Gets the typographic line spacing of the face, expressed in font units.

    Declaration
    public short LineHeight { get; }
    Property Value
    Type Description
    short

    Implements

    IMetricsHeader
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX