Skip to content

Commit

Permalink
Hook up MATH table
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 29, 2024
1 parent b8f3a19 commit 098e5ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions read-fonts/src/table_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ pub trait TableProvider<'a> {
fn meta(&self) -> Result<tables::meta::Meta<'a>, ReadError> {
self.expect_table()
}

fn math(&self) -> Result<tables::math::Math<'a>, ReadError> {
self.expect_table()
}
}

#[cfg(test)]
Expand Down
1 change: 1 addition & 0 deletions read-fonts/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions read-fonts/src/tables/math.rs
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit 098e5ca

Please sign in to comment.