Docsv2.12.12
Back to API Reference
Enum

RubyModifier.RubyAlign

How the annotation is positioned within its base column when it is narrower than the base.

public static readonly RubyAlign SpaceAround = 0

Half a unit of space at each edge and a full unit between glyphs (CSS space-around / JIS X 4051 mono-ruby 1:2:1). The default.

public static readonly RubyAlign Center = 1

Centered as a solid block, no internal spacing (CSS center).

public static readonly RubyAlign SpaceBetween = 2

Flush to both edges, extra space only between glyphs (CSS space-between); falls back to centered for a single glyph.

public static readonly RubyAlign Start = 3

Flush to the start of the base, extra space trails at the end (CSS start).