mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
LibPDF/CFF: Add a comment to CFF::parse_charset()
This commit is contained in:
parent
5c8778a161
commit
c9d48bbca4
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/c9d48bbca4 Pull-request: https://github.com/SerenityOS/serenity/pull/23202
@ -843,6 +843,8 @@ DeprecatedFlyString CFF::resolve_sid(SID sid, Vector<StringView> const& strings)
|
||||
PDFErrorOr<Vector<CFF::SID>> 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<SID> names;
|
||||
auto format = TRY(reader.try_read<Card8>());
|
||||
if (format == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user