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
commit 3eaa27f53a
Notes: sideshowbarker 2024-07-17 07:09:53 +09:00
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 {};
}