Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime prelude for auto-patched Web2C/C2Rust engine source. Generated code must be lowered from raw globals into PortableTexState before it is linked into mathtex-engine.

Structs§

EmptyFontPlatform
EmptyPlatform
EmptyResourceProvider
EngineProfile
GlyphAssembly
Heap-owned OpenType MATH glyph assembly handed to the engine as an opaque pointer by get_ot_assembly_ptr and reclaimed by free_ot_assembly.
PortableClock
PortableFontMetrics
PortableFormatImage
PortableLinebreakRequest
PortableMathAssemblyPart
One part of an OpenType MATH glyph assembly, all measurements in scaled points (mirrors hb_ot_math_glyph_part_t / ttf-parser GlyphPart).
PortableMathVariant
A larger OpenType MATH glyph variant: the variant glyph id and its advance in scaled points (-1 advance means “no such variant”).
PortableNativeGlyph
PortableNativeGlyphMetrics
PortableNativeTextMetrics
PortableNodeHandle
PortableNodeSnapshot
PortableNodeSourceSpan
PortableResourceRequestRecord
PortableSourceSpan
PortableTexEngine
ResourceRequest

Enums§

EngineProfileKind
InputEncoding
Input decoding mode for a [PortableFileHandle], mirroring XeTeX’s encoding modes (xetex.h): Bytes corresponds to RAW. AUTO/ICUMAPPING are not stored here — AUTO is resolved to a concrete mode at open time (BOM sniff), and ICU mappings degrade to Bytes.
PortableMathKernCorner
A corner of an OpenType MathKernInfo record (mirrors hb_ot_math_kern_t).
PortableNodeKind
ResourceKind

Traits§

FontPlatform
PortablePlatform
ResourceProvider

Functions§

memory_word_bytes
Size in bytes of one TeX memory_word in this build. Real XeTeX packs it to 8; this engine uses a 16-byte word (the four_quarters view is u16, but two_halves/cint keep the c2rust 32-bit alignment).

Type Aliases§

PortableFontHandle