diff --git a/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp b/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp index 47f2ba84b44..47429259655 100644 --- a/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp +++ b/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp @@ -49,9 +49,9 @@ PDFErrorOr> CIDFontType2::create(Document* document, if (descendant->contains(CommonNames::CIDToGIDMap)) { auto value = TRY(descendant->get_object(document, CommonNames::CIDToGIDMap)); if (value->is()) { - TODO(); + return Error::rendering_unsupported_error("Type0 font subtype 2: support for stream cid maps not yet implemented"); } else if (value->cast()->name() != "Identity") { - TODO(); + return Error::rendering_unsupported_error("Type0 font: support for non-Identity named cid maps not yet implemented"); } } @@ -98,7 +98,7 @@ PDFErrorOr Type0Font::initialize(Document* document, NonnullRefPtrget_object(document, CommonNames::Encoding)); if (!cmap_value->is() || cmap_value->cast()->name() != CommonNames::IdentityH) - TODO(); + return Error::rendering_unsupported_error("Type0 font: support for general Encodings not yet implemented"); auto descendant_font_value = TRY(dict->get_array(document, CommonNames::DescendantFonts)); auto descendant_font = TRY(descendant_font_value->get_dict_at(document, 0));