• 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 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

    | Edit this page View Source

    AdvanceHeight

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

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

    AdvanceWidth

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

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

    BottomSideBearing

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

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

    CodePoint

    Gets the Unicode codepoint of the glyph.

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

    GlyphColor

    Gets the color of this glyph when the GlyphType is ColrLayer

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

    GlyphId

    Gets the id of the glyph within the font tables.

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

    GlyphType

    Gets the glyph type.

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

    Height

    Gets the height, expressed in font units.

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

    LeftSideBearing

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

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

    RightSideBearing

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

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

    ScaleFactor

    Gets the scale factor that is applied to all glyphs in this face. Normally calculated as 72 * UnitsPerEm so that 1pt = 1px unless the glyph has TextAttributes that apply scaling adjustment.

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

    TextAttributes

    Gets the text attributes applied to the glyph.

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

    TextDecorations

    Gets the text decorations applied to the glyph.

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

    TopSideBearing

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

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

    UnitsPerEm

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

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

    Width

    Gets the width, expressed in font units.

    Declaration
    public float Width { get; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    ShouldSkipGlyphRendering(CodePoint)

    Gets a value indicating whether the specified code point should be skipped when rendering.

    Declaration
    protected static bool ShouldSkipGlyphRendering(CodePoint codePoint)
    Parameters
    Type Name Description
    CodePoint codePoint

    The code point.

    Returns
    Type Description
    bool

    The bool.

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