From d24289eef47db2cb88f247cd99935e969bac9eec Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 31 Oct 2023 15:49:17 -0400 Subject: [PATCH] LibPDF: Always log unhandled type 1 and type 2 font program opcodes This would've made it easy to see that we were missing flex opcodes for https://developer.apple.com/library/archive/documentation/mac/pdf/Text.pdf --- Userland/Libraries/LibPDF/Fonts/Type1FontProgram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.cpp b/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.cpp index 8e36a0c11d..b325b97dc0 100644 --- a/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.cpp +++ b/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.cpp @@ -629,7 +629,7 @@ PDFErrorOr Type1FontProgram::parse_glyph(ReadonlyBytes } default: - dbgln_if(PDF_DEBUG, "Unhandled command: 12 {}", data[i]); + dbgln("Unhandled command: 12 {}", data[i]); return error("Unhandled command"); } break; @@ -714,7 +714,7 @@ PDFErrorOr Type1FontProgram::parse_glyph(ReadonlyBytes } default: - dbgln_if(PDF_DEBUG, "Unhandled command: {}", v); + dbgln("Unhandled command: {}", v); return error("Unhandled command"); }