Skip to main content

Module inline_context

Module inline_context 

Source
Expand description

Inline Formatting Context (IFC), Line Boxes, and Subpixel Vertical Alignment.

Organizes shaped glyph runs into line boxes, resolves vertical alignments, and computes final subpixel layout bounds with full Blink LayoutNG parity.

Structs§

AtomicFragment
A positioned atomic inline fragment on a line box.
InlineFormattingContext
High-performance Inline Formatting Context engine.
InlineLayoutOptions
Options configuring inline text layout.
InlineLayoutResult
Complete measurement and geometry result of an inline layout pass.
InlineTextStyle
Typographic styling applied to an individual inline text run within an IFC.
LineBox
A positioned inline line box representing a single rendered text line.
TextFragment
A visual fragment of an inline text run positioned on a specific line box.

Enums§

InlineItem
An individual item in an Inline Formatting Context stream.
VerticalAlignment
CSS vertical-align property values for inline formatting context.

Functions§

is_prohibited_line_end
Returns true if a token cannot end a line per Unicode UAX #14 (Japanese Kinsoku Shori Gyomatsu Kinsoku).
is_prohibited_line_start
Returns true if a token cannot begin a new line per Unicode UAX #14 (Japanese Kinsoku Shori Gyoto Kinsoku).