1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

LibPDF/CFF: Add enum values for remaining PrivDictOperators

No behavior change, except that we now dbgln() if we see a
PrivDictOperator we don't know about. (I haven't seen this in
practice, but I found this useful while debugging things.)
This commit is contained in:
Nico Weber 2024-02-09 07:55:06 -05:00 committed by Jelle Raaijmakers
parent 7833dc0f5a
commit 8e7cb11856
2 changed files with 36 additions and 0 deletions

View file

@ -51,6 +51,21 @@ private:
// CFF spec, "Table 23 Private DICT Operators"
enum class PrivDictOperator {
BlueValues = 6,
OtherBlues,
FamilyBlues,
FamilyOtherBlues,
BlueScale = (12 << 8 | 9),
BlueShift,
BlueFuzz,
StdHW = 10,
StdVW,
StemSnapH = (12 << 8 | 12),
StemSnapV,
ForceBold,
LanguageGroup = (12 << 8 | 17),
ExpansionFactor,
InitialRandomSeed,
Subrs = 19,
DefaultWidthX,
NominalWidthX,