From 04aec4a03248057aef7046625d2e687dfc9b02d5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 21 Oct 2023 11:21:14 -0400 Subject: [PATCH] LibPDF: Don't log CFF Copyright tag as unknown --- Userland/Libraries/LibPDF/Fonts/CFF.cpp | 1 + Userland/Libraries/LibPDF/Fonts/CFF.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibPDF/Fonts/CFF.cpp b/Userland/Libraries/LibPDF/Fonts/CFF.cpp index 91c89393c7..d920861e16 100644 --- a/Userland/Libraries/LibPDF/Fonts/CFF.cpp +++ b/Userland/Libraries/LibPDF/Fonts/CFF.cpp @@ -140,6 +140,7 @@ PDFErrorOr> CFF::create(ReadonlyBytes const& cff_bytes, RefPt case TopDictOperator::FontBBox: case TopDictOperator::UniqueID: case TopDictOperator::XUID: + case TopDictOperator::Copyright: case TopDictOperator::IsFixedPitch: case TopDictOperator::ItalicAngle: case TopDictOperator::UnderlinePosition: diff --git a/Userland/Libraries/LibPDF/Fonts/CFF.h b/Userland/Libraries/LibPDF/Fonts/CFF.h index fadb013c94..49b705163e 100644 --- a/Userland/Libraries/LibPDF/Fonts/CFF.h +++ b/Userland/Libraries/LibPDF/Fonts/CFF.h @@ -34,7 +34,8 @@ private: Encoding, CharStrings, Private, - IsFixedPitch = (12 << 8 | 1), + Copyright = (12 << 8), + IsFixedPitch, ItalicAngle, UnderlinePosition, UnderlineThickness,