summaryrefslogtreecommitdiff
path: root/src/export/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'src/export/pdf')
-rw-r--r--src/export/pdf/font.rs5
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,