1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

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
This commit is contained in:
Nico Weber 2023-10-31 15:49:17 -04:00 committed by Tim Flynn
parent e1a743f286
commit d24289eef4

View file

@ -629,7 +629,7 @@ PDFErrorOr<Type1FontProgram::Glyph> 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::Glyph> Type1FontProgram::parse_glyph(ReadonlyBytes
}
default:
dbgln_if(PDF_DEBUG, "Unhandled command: {}", v);
dbgln("Unhandled command: {}", v);
return error("Unhandled command");
}