• 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
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphDecorationRenderer
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • InvalidFontFileException
      • InvalidFontTableException
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • KerningMode
      • LayoutMode
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Tables.TrueType.Glyphs
      • GlyphOutline
    • SixLabors.Fonts.Unicode
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • JoiningClass
      • JoiningGroup
      • JoiningType
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Class GlyphMetrics

    Represents a glyph metric from a particular font face.

    Inheritance
    Object
    GlyphMetrics
    TrueTypeGlyphMetrics
    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 abstract class GlyphMetrics

    Properties

    | Improve this Doc View Source

    AdvanceHeight

    Gets the advance height for vertical layout, expressed in font units.

    Declaration
    public ushort AdvanceHeight { get; }
    Property Value
    Type Description
    UInt16
    | Improve this Doc View Source

    AdvanceWidth

    Gets the advance width for horizontal layout, expressed in font units.

    Declaration
    public ushort AdvanceWidth { get; }
    Property Value
    Type Description
    UInt16
    | Improve this Doc View Source

    BottomSideBearing

    Gets the bottom side bearing for vertical layout, expressed in font units.

    Declaration
    public short BottomSideBearing { get; }
    Property Value
    Type Description
    Int16
    | Improve this Doc View Source

    CodePoint

    Gets the Unicode codepoint of the glyph.

    Declaration
    public CodePoint CodePoint { get; }
    Property Value
    Type Description
    CodePoint
    | Improve this Doc View Source

    GlyphColor

    Gets the color of this glyph when the GlyphType is ColrLayer

    Declaration
    public GlyphColor? GlyphColor { get; }
    Property Value
    Type Description
    Nullable<GlyphColor>
    | Improve this Doc View Source

    GlyphType

    Gets the glyph type.

    Declaration
    public GlyphType GlyphType { get; }
    Property Value
    Type Description
    GlyphType
    | Improve this Doc View Source

    Height

    Gets the height, expressed in font units.

    Declaration
    public float Height { get; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    LeftSideBearing

    Gets the left side bearing for horizontal layout, expressed in font units.

    Declaration
    public short LeftSideBearing { get; }
    Property Value
    Type Description
    Int16
    | Improve this Doc View Source

    RightSideBearing

    Gets the right side bearing for horizontal layout, expressed in font units.

    Declaration
    public short RightSideBearing { get; }
    Property Value
    Type Description
    Int16
    | Improve this Doc View Source

    ScaleFactor

    Gets the scale factor that is applied to all glyphs in this face. Calculated as 72 * UnitsPerEm so that 1pt = 1px.

    Declaration
    public Vector2 ScaleFactor { get; protected set; }
    Property Value
    Type Description
    Vector2
    | Improve this Doc View Source

    TopSideBearing

    Gets the top side bearing for vertical layout, expressed in font units.

    Declaration
    public short TopSideBearing { get; }
    Property Value
    Type Description
    Int16
    | Improve this Doc View Source

    UnitsPerEm

    Gets the number of font units per EM square for this face.

    Declaration
    public ushort UnitsPerEm { get; }
    Property Value
    Type Description
    UInt16
    | Improve this Doc View Source

    Width

    Gets the width, expressed in font units.

    Declaration
    public float Width { get; }
    Property Value
    Type Description
    Single
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX