summaryrefslogtreecommitdiff
path: root/pdf/pdf_font1C.h
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-3/+3
|
* Copy existing font objects for substitutionsChris Liddell2022-07-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we'd create a new font from the font file for every substitution. This changes it so we create a "base" font object from the font file, then substitutes are created by copying that font object. This also addresses bug 705199 Constitutes the following: Add a pdf_buffer object Since the pdf_string/pdf_name rework, we can't use pdf_strings as a convenient type for abitrary byte arrays which either might be more than 4k (static analysis tools complain), or where the data buffer already exists, and isn't being allocated as part of the pdf_string object. So add a pdf_buffer for such situations. Also includes a function to (re)set the data pointer and length in a pdf_buffer object. It's important to note that once referenced by a pdf_buffer object, the data buffer is owned by the pdf_buffer, and its lifetime is tied to the pdf_buffer object lifetime. Revise pdf_font_truetype/pdf_cidfont_type2 to use pdf_buffer for their sfnt data. Have Type 1 Subr strings stored in a pdf array object Expunge the old glyph "fake_names"... ...since we now have a "real" name table. Clean up the CFF pdfi font objects Move ToUnicode into pdf_font_base... ... rather than pdf_font_common - so it's in both CIDFonts and fonts. Split out code for First/LastChar, MissingWidth and Widths array so all font types use common code. Add font object copying functions For Type 1, CFF, and TTF fonts (NOT CIDFonts) Cache substituted fonts rather recreated on every substitution Fix font copying to handle object num/generation Handle multiple levels of lookup in fontmap Fixes and tweaks in font copying/substituting changes Don't pass font dict object for substitute font loading Fix reference counting for file name string in font objects. A few more font copying tweaks and fixes Act on stoponerror for broken embedded fonts Consolidate very similar functions
* Commit pdfi to master.Robin Watts2021-08-121-0/+28
This is a commit of the pdfi branch to master, eliminating the traditional merge step. The full history of the pdfi branch can be seen in the repo, and that branch is effectively frozen from this point onwards. This commit actually differs from pdfi in a small number of whitespace changes (trailing spaces etc).