Skip to main content

Crate mathtex_font

Crate mathtex_font 

Source
Expand description

Font loading, shaping, metrics, and OpenType math access for mathtex.

Re-exports§

pub use rustybuzz;
pub use ttf_parser;

Structs§

ComposedFontSystem
Font system assembled from independent loading and shaping services.
FontData
Loaded font identity plus its face source.
FontGlyphMetrics
Metrics for a single glyph in TeX scaled point units.
FontMetrics
Overall font metrics in TeX scaled point units.
FontQuery
Font lookup request.
InMemoryFontSystem
Font system backed by an in process font map, for embedded and browser environments.
MathAssemblyPart
One part of an OpenType math glyph assembly, with all measurements in scaled points.
NoFontSystem
Deterministic empty font system.
RustybuzzFontSystem
Font system backed by ttf-parser and rustybuzz, with font bytes cached by FontId.
ShapeFeature
OpenType feature request (tag + value), e.g. ssty=1 for math script size substitution.
ShapeRequest
Text shaping request.
ShapedText
Shaped text result.

Enums§

FontError
Font system failure.
MathKernCorner
Corner of an OpenType MathKernInfo record (mirrors HarfBuzz hb_ot_math_kern_t).

Traits§

FontLoader
Font loading half of a font system.
FontSystem
Font loading and shaping boundary used by engine profiles.
SharedFace
Face the application parsed and owns; the library borrows it and never parses or copies.
TextShaper
Text shaping half of a font system, decoupled from any concrete shaper crate.