Skip to main content

Crate mathtex_font

Crate mathtex_font 

Source
Expand description

XeTeX font spec parsing, the host font loader trait, and OpenType metrics and math access.

Re-exports§

pub use rustybuzz;
pub use ttf_parser;

Structs§

FontData
A loaded font face and the key the host chose for it.
FontGlyphMetrics
Metrics of one glyph in scaled points.
FontKey
Host chosen identity of a loaded font face.
FontMetrics
Overall font metrics in scaled points.
FontSpec
A parsed XeTeX font spec, the engine shapes with its name, script, language and features only.
GlyphBoundsPoints
A glyph’s advance and control box in points, y up.
InMemoryFontLoader
Loads fonts from an in process map keyed by file name.
MathAssemblyPart
One part of an OpenType math glyph assembly, measurements in scaled points.
MathVariant
A larger OpenType math glyph variant.
ShapeFeature
An OpenType feature setting, such as ssty=1 for math script size variants.

Enums§

FontError
Font loading or parsing failure.
MathKernCorner
Corner of an OpenType MathKernInfo record, as HarfBuzz’s hb_ot_math_kern_t.

Traits§

FontLoader
Loads font faces for the engine, the only font trait a host implements.
SharedFace
A face the host parsed and owns, the library borrows it and never parses or copies it.