diff --git a/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp b/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp index a2f93999f4..1b6dca54dd 100644 --- a/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp +++ b/Userland/Libraries/LibPDF/Fonts/Type0Font.cpp @@ -273,12 +273,14 @@ PDFErrorOr Type0Font::initialize(Document* document, NonnullRefPtrcontains(CommonNames::DW)) default_width = descendant_font->get_value(CommonNames::DW).to_int(); + // "The W array allows the definition of widths for individual CIDs." HashMap widths; - if (descendant_font->contains(CommonNames::W)) { auto widths_array = MUST(descendant_font->get_array(document, CommonNames::W)); Optional pending_code;