Repository navigation
chore(deps): update Rust crate printpdf to v0.13.1 - #262
Merged
Merged
Conversation
|
This pull request is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.13.0→0.13.1Release Notes
fschutt/printpdf (printpdf)
v0.13.1Compare Source
0.13.0 is yanked. It linked proprietary and GPL font files (#308, #309).
Added
PdfDocument::replace_builtin_fontembeds your own font for text in a standard font. PDF/A and PDF/X require this.include_base_fontsis off by default. It embeds the Foxit fonts of PDFium (BSD-3-Clause) for standard fonts in PDF/A and PDF/X documents.scripts/gen_base14_fonts.pygenerates them and the standard-font metrics from the files pdf.js ships.Changed
MIT AND BSD-3-Clause.third_party/README.mdlists them.BuiltinFont::get_parsed_fontreturns a face built from these metrics. It has the advance widths of the 256 one-byte codes and no outlines. It measures text like the standard font but cannot be embedded or drawn.include_base_fonts. Without it, a standard font stays unembedded unlessPdfDocument::replace_builtin_fontreplaces it. The save warns.Helvetica,Times,Courier,Symbol,ZapfDingbatsand their CSS names (Arial,Times New Roman,Courier New) uses the standard-font metrics. The text is written with the standard font, which is not embedded.XmlRenderOptions::fontswith the same name still wins. It is embedded.TextItem::GlyphIdsin a standard font are the one-byte codes ofget_parsed_font. They were two-byte codes.optimize_textalso drops a redundant/ActualTexton text in a Latin standard font.tests/wasm_api_demo_boot.rsregister only Roboto and Noto Sans JP.PdfDocumentInfo::output_intent(OutputIntent). Without it, a PDF/X file has no output intent and saving reports an error.Removed
BuiltinFont::get_subset_fontand thedefaultfonts/directory.examples/assets/fonts, includingPDFASymbol.woff2, andscripts/add_space_glyphs.py. Tests use Roboto or the metrics faces instead.src/res/CoatedFOGRA39.iccand its license text.Fixed
onesuperior,twosuperiorandthreesuperiordecode in the encodings of simple fonts. They were unknown.examples/assets/fonts/OFL.txtnames Noto Sans JP, the font it covers.Roboto-LICENSE.txtholds the Apache License of Roboto./CIDSet.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.