diff --git a/read-fonts/src/table_provider.rs b/read-fonts/src/table_provider.rs index 6a9191a86..586f30a1c 100644 --- a/read-fonts/src/table_provider.rs +++ b/read-fonts/src/table_provider.rs @@ -216,6 +216,10 @@ pub trait TableProvider<'a> { fn meta(&self) -> Result, ReadError> { self.expect_table() } + + fn math(&self) -> Result, ReadError> { + self.expect_table() + } } #[cfg(test)] diff --git a/read-fonts/src/tables.rs b/read-fonts/src/tables.rs index 9153ef8d1..c23c84ca8 100644 --- a/read-fonts/src/tables.rs +++ b/read-fonts/src/tables.rs @@ -32,6 +32,7 @@ pub mod ift; pub mod layout; pub mod loca; pub mod ltag; +pub mod math; pub mod maxp; pub mod meta; pub mod mvar; diff --git a/read-fonts/src/tables/math.rs b/read-fonts/src/tables/math.rs new file mode 100644 index 000000000..2f22cbe90 --- /dev/null +++ b/read-fonts/src/tables/math.rs @@ -0,0 +1,5 @@ +//! The [MATH (Mathematical Typesetting)](https://docs.microsoft.com/en-us/typography/opentype/spec/math) table + +pub use super::layout::{CoverageTable, Device}; + +include!("../../generated/generated_math.rs");