1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:37:34 +00:00

LibPDF/CFF: Add enum values for CID-keyed font top dict entries

No behavior change.
This commit is contained in:
Nico Weber 2024-02-09 08:05:47 -05:00 committed by Jelle Raaijmakers
parent 6df0150671
commit 6ebddab448
2 changed files with 21 additions and 0 deletions

View file

@ -229,6 +229,16 @@ PDFErrorOr<NonnullRefPtr<CFF>> 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<int>(op));
}

View file

@ -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"