formel 0.1.0

Lay out mathematical formulas from MathML with a font's OpenType MATH table
Documentation
1
2
3
4
5
6
7
8
9
10
use formel::shaper::Shaper;

pub fn get_bytes() -> &'static [u8] {
    include_bytes!("testfiles/latinmodern-math.otf")
}

thread_local! {
    pub static TEST_FONT: Shaper<'static> =
        Shaper::from_slice(get_bytes(), 0).expect("test font has a MATH table");
}