diff --git a/Userland/Libraries/LibPDF/Fonts/PDFFont.cpp b/Userland/Libraries/LibPDF/Fonts/PDFFont.cpp index a2db01050f..ab05e95904 100644 --- a/Userland/Libraries/LibPDF/Fonts/PDFFont.cpp +++ b/Userland/Libraries/LibPDF/Fonts/PDFFont.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include @@ -83,8 +84,7 @@ PDFErrorOr> PDFFont::create(Document* document, NonnullRe if (subtype == "TrueType") return TRY(TrueTypeFont::create(document, dict, font_size)); - dbgln("Unknown font subtype: {}", subtype); - TODO(); + return Error(Error::Type::Internal, TRY(String::formatted("Unhandled font subtype: {}", subtype)).to_deprecated_string()); } Tuple PDFFont::replacement_for_standard_latin_font(StringView name)