diff --git a/Userland/Libraries/LibPDF/Fonts/CFF.cpp b/Userland/Libraries/LibPDF/Fonts/CFF.cpp index a4ed4d480b..1234cb7d2e 100644 --- a/Userland/Libraries/LibPDF/Fonts/CFF.cpp +++ b/Userland/Libraries/LibPDF/Fonts/CFF.cpp @@ -229,6 +229,16 @@ PDFErrorOr> CFF::create(ReadonlyBytes const& cff_bytes, RefPt })); break; } + case TopDictOperator::CIDFontVersion: + case TopDictOperator::CIDFontRevision: + case TopDictOperator::CIDFontType: + case TopDictOperator::CIDCount: + case TopDictOperator::UIDBase: + case TopDictOperator::FDArray: + case TopDictOperator::FDSelect: + case TopDictOperator::FontName: + // Keys for CID-keyed fonts that we don't need, at least at the moment. + break; default: dbgln("CFF: Unhandled top dict entry {}", static_cast(op)); } diff --git a/Userland/Libraries/LibPDF/Fonts/CFF.h b/Userland/Libraries/LibPDF/Fonts/CFF.h index ee12beffc6..feac924d74 100644 --- a/Userland/Libraries/LibPDF/Fonts/CFF.h +++ b/Userland/Libraries/LibPDF/Fonts/CFF.h @@ -47,6 +47,17 @@ private: PostScript, BaseFontName, BaseFontBlend, + + // CFF spec, "Table 10 CIDFont Operator Extensions" + RegistryOrderingSupplement = (12 << 8 | 30), + CIDFontVersion, + CIDFontRevision, + CIDFontType, + CIDCount, + UIDBase, + FDArray, + FDSelect, + FontName, }; // CFF spec, "Table 23 Private DICT Operators"