From c9d48bbca4ed7f6ad260ca91a6c064902612fdff Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 15 Feb 2024 07:53:29 -0500 Subject: [PATCH] LibPDF/CFF: Add a comment to CFF::parse_charset() --- Userland/Libraries/LibPDF/Fonts/CFF.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibPDF/Fonts/CFF.cpp b/Userland/Libraries/LibPDF/Fonts/CFF.cpp index d7f525da6fd..04a4a57fcbe 100644 --- a/Userland/Libraries/LibPDF/Fonts/CFF.cpp +++ b/Userland/Libraries/LibPDF/Fonts/CFF.cpp @@ -843,6 +843,8 @@ DeprecatedFlyString CFF::resolve_sid(SID sid, Vector const& strings) PDFErrorOr> CFF::parse_charset(Reader&& reader, size_t glyph_count) { // CFF spec, "13 Charsets" + + // Maps `GID - 1` to a SID (or CID, for CID-keyed fonts). The name of GID 0 is implicitly ".notdef". Vector names; auto format = TRY(reader.try_read()); if (format == 0) {