mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 05:27:40 +00:00
![]() All "Simple Fonts" in PDF (all but Type0 fonts) have the property that glyphs are selected with single byte character codes. This means that the Encoding objects should use u8 for representing these character codes. Moreover, and as mentioned in a previous commit, there is no need to store the unicode code point associated with a character (which was in turn wrongly associated to a glyph). This commit greatly simplifies the Encoding class. Namely it: * Removes the unnecessary CharDescriptor class. * Changes the internal maps to be u8 -> FlyString and vice-versa, effectively providing two-way lookups. * Adds a new method to set a two-way u8 -> FlyString mapping and uses it in all possible places. * Simplified the creation of Encoding objects. * Changes how the WinAnsi special treatment for bullet points is implemented. |
||
---|---|---|
.. | ||
CFF.cpp | ||
CFF.h | ||
PDFFont.cpp | ||
PDFFont.h | ||
PS1FontProgram.cpp | ||
PS1FontProgram.h | ||
TrueTypeFont.cpp | ||
TrueTypeFont.h | ||
Type0Font.cpp | ||
Type0Font.h | ||
Type1Font.cpp | ||
Type1Font.h | ||
Type1FontProgram.cpp | ||
Type1FontProgram.h |