Table of Contents

Struct Glyph

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents a font-specific glyph at the point size used for layout and rendering.

public readonly struct Glyph
Inherited Members

Properties

GlyphMetrics

Gets the font metrics for this glyph.

public FontGlyphMetrics GlyphMetrics { get; }

Property Value

FontGlyphMetrics

Methods

BoundingBox(GlyphLayoutMode, Vector2, float)

Calculates the rendered glyph bounds for the specified layout mode and origin.

public FontRectangle BoundingBox(GlyphLayoutMode mode, Vector2 glyphOrigin, float dpi)

Parameters

mode GlyphLayoutMode

The glyph layout mode to measure with.

glyphOrigin Vector2

The glyph origin to calculate the bounds from.

dpi float

The DPI to measure the glyph at.

Returns

FontRectangle

The rendered glyph bounds.