From 7ef6cb31df0fe1ebec99b1077053a586a349f530 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Sep 2022 11:22:45 +0200 Subject: Bump ttf-parser --- src/export/pdf/font.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/export') diff --git a/src/export/pdf/font.rs b/src/export/pdf/font.rs index 446d36bc..3398478a 100644 --- a/src/export/pdf/font.rs +++ b/src/export/pdf/font.rs @@ -45,8 +45,9 @@ pub fn write_fonts(ctx: &mut PdfContext) { // Check for the presence of CFF outlines to select the correct // CID-Font subtype. let subtype = match ttf - .table_data(Tag::from_bytes(b"CFF ")) - .or(ttf.table_data(Tag::from_bytes(b"CFF2"))) + .raw_face() + .table(Tag::from_bytes(b"CFF ")) + .or(ttf.raw_face().table(Tag::from_bytes(b"CFF2"))) { Some(_) => CidFontType::Type0, None => CidFontType::Type2, -- cgit v1.2.3