diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-30 11:22:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-30 11:23:09 +0200 |
| commit | 7ef6cb31df0fe1ebec99b1077053a586a349f530 (patch) | |
| tree | c4527c31521859bcb9c8ca5eafb14e6efb613bb0 /src/export/pdf | |
| parent | 9db89b376da33f99867ca511fe701e067432196d (diff) | |
Bump ttf-parser
Diffstat (limited to 'src/export/pdf')
| -rw-r--r-- | src/export/pdf/font.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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, |
