Table of Contents

Enum DecorationPositioningMode

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Defines how text decorations (underline, overline, strikethrough) are positioned relative to font metrics.

public enum DecorationPositioningMode

Fields

GlyphFont = 1

Uses each glyph's own font metrics to position its decoration. Decoration positions may vary between glyphs and fallback fonts within the same line. Matches typical Microsoft Word behavior.

PrimaryFont = 0

Uses the primary (base) font's metrics for the entire run or line, ensuring a consistent decoration position across mixed fonts and scripts. Matches typical browser behavior.