1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibPDF: Add infrastructure for accented character glyphs

Type1 accented character glyphs are composed of two other glyphs in the
same font: a base glyph and an accent glyph, given as char codes in the
standard encoding. These two glyphs are then composed together to form
the accented character.

This commit adds the data structures to hold the information for
accented characters, and also the routine that composes the final glyph
path out of the two individual components. All glyphs must have been
loaded by the time this composition takes place, and thus a new
protected consolidate_glyphs() routine has been added to perform this
calculation.
This commit is contained in:
Rodrigo Tobar 2023-02-05 14:23:07 +08:00 committed by Andreas Kling
parent 11a9bfd4b6
commit 3eaa27f53a
4 changed files with 43 additions and 0 deletions

View file

@ -98,6 +98,7 @@ PDFErrorOr<void> PS1FontProgram::parse_encrypted_portion(ByteBuffer const& buffe
}
}
consolidate_glyphs();
return {};
}