(&'a self, tag: u32)
| 25 | #[cfg(feature = "outline-fonts")] |
| 26 | impl<'b> FontTableProvider for CanvasTableProvider<'b> { |
| 27 | fn table_data<'a>(&'a self, tag: u32) -> Result<Option<Cow<'a, [u8]>>, ParseError> { |
| 28 | let table_data = self.0.table_data(ttf_parser::Tag::from_bytes(&tag.to_be_bytes())); |
| 29 | let table_data = table_data.map(|data| Cow::Borrowed(data)); |
| 30 | |
| 31 | Ok(table_data) |
| 32 | } |
| 33 | |
| 34 | fn has_table<'a>(&'a self, tag: u32) -> bool { |
| 35 | let table_data = self.0.table_data(ttf_parser::Tag::from_bytes(&tag.to_be_bytes())); |