Skip to main content

Crate mathtex_ir

Crate mathtex_ir 

Source
Expand description

Renderer neutral intermediate representation for a laid out TeX/LaTeX fragment.

Structs§

Alpha
Alpha channel represented independently from color payloads.
BoxMetrics
TeX box dimensions.
ByteSpan
A half open byte span.
Color
Color with red, green, blue, and alpha channels.
Drawing
Backend neutral drawing data using path commands.
FontFeature
An OpenType feature tag and value pair.
FontId
Stable font identifier.
FontRef
Font identity and size for a glyph run.
Fragment
A complete renderer neutral layout result for one TeX/LaTeX fragment.
FragmentMetadata
Metadata describing how a fragment was produced.
Glue
Flexible spacing after TeX layout has resolved it to a concrete width.
GlyphId
Backend independent glyph identifier.
GlyphOutline
Glyph outline in font design units, with empty commands for invisible glyphs such as spaces.
GlyphRun
A shaped sequence of glyphs from one font.
Kern
A fixed spacing adjustment between adjacent layout items.
LayoutBox
TeX style box data retained in renderer neutral layout IR.
LayoutList
TeX style list data retained before or after box packaging.
LayoutNode
A positioned renderable or grouping node.
Length
TeX style scaled point value.
NodeId
Stable node identifier.
Point
A point in scaled layout units.
PositionedGlyph
A glyph with its layout position and optional source cluster.
Rect
A rectangle in layout coordinates.
Rule
A solid rectangle in layout coordinates.
Size
A two dimensional size in layout units.
SourceFile
A source resource, such as user input or a loaded package file.
SourceId
Stable source identifier.
SourceMap
Maps layout nodes to regions in source input files.
SourceMapEntry
A single mapping from a layout node to a source range.
SourceOrigin
A resolved source map relationship with source metadata.
SourceRange
A span within a registered source file.
Stroke
Stroke style for a drawing path.
Style
Renderer neutral style state attached to layout nodes.
Surface
The top level coordinate surface for a rendered fragment.
Tag
Four byte tag in OpenType format.

Enums§

BoxKind
Distinguishes the axis or mode of a TeX box.
Direction
Text direction for glyph runs.
DrawCommand
A path drawing command in local layout coordinates.
FragmentKind
Classifies the mode in which a fragment was typeset.
LayoutNodeKind
Renderer neutral node payloads.
ListKind
Distinguishes the axis or mode of a TeX list.
OutlineCommand
Glyph outline command in font design units, with y increasing upward.
SourceRole
How a source range contributed to a node.