Skip to main content

Crate mathtex_ir

Crate mathtex_ir 

Source
Expand description

Renderer neutral layout IR for one typeset TeX fragment, with source spans.

Structs§

ByteSpan
A half open span of UTF-8 byte offsets.
FontKey
Host chosen identity of a loaded font face.
FontRef
A font as the IR names it.
Fragment
One typeset fragment: a tree of layout nodes rooted at root, stored densely by id.
FragmentMetadata
How a fragment was produced.
Glue
Glue after glue setting.
GlyphId
Glyph index in an OpenType font, or the character code for TFM fonts.
GlyphOutline
Glyph outline in font design units, y up, empty for blank glyphs such as spaces.
GlyphRun
Glyphs of one font.
Kern
A kern.
LayoutBox
A TeX box.
LayoutNode
A node of the layout tree.
Length
A TeX dimension in scaled points, 65536 per point, arithmetic saturates.
NodeId
Node id, the node’s index in Fragment::nodes.
Point
A point in scaled points, y down.
PositionedGlyph
A glyph placed relative to its run.
SourceFile
A source file, such as the host’s input.
SourceId
Source file id, the file’s index in SourceMap::sources.
SourceMap
Source files and the enclosing construct spans of nodes.
SourceMapEntry
An enclosing construct span of a node, such as a macro call around it.
SourceOrigin
A resolved source relationship of a node.
SourceRange
A span within a registered source file.
Surface
Extent of a fragment, the root box’s width, total height and height above the baseline.

Enums§

Axis
Direction a glue or kern moves the list position.
BoxKind
Whether a box holds a horizontal or a vertical list.
FragmentError
Why a fragment breaks the IR invariants.
FragmentKind
Mode a fragment was typeset in.
LayoutNodeKind
What a layout node is.
OutlineCommand
Glyph outline command in font design units, y up.
Placed
A drawable item from Fragment::flatten, lengths absolute from the surface top left, y down.
SourceRole
How a source span relates to a node.