Skip to content

Comments

chore(deps): update ttfunk-and-prawn (minor)#444

Draft
renovate[bot] wants to merge 2 commits intodevelopfrom
renovate/ttfunk-and-prawn
Draft

chore(deps): update ttfunk-and-prawn (minor)#444
renovate[bot] wants to merge 2 commits intodevelopfrom
renovate/ttfunk-and-prawn

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 16, 2025

This PR contains the following updates:

Package Change Age Confidence
prawn (source, changelog) '~> 2.4.0' -> '~> 2.5.0' age confidence
ttfunk (source, changelog) '~> 1.7.0' -> '~> 1.8.0' age confidence

Release Notes

prawnpdf/prawn (prawn)

v2.5.0

Compare Source

Full font embedding

Fonts can be embedded in their original form without subsetting or any other
modification.

(Alexander Mankuta, #​1322)

prawnpdf/ttfunk (ttfunk)

v1.8.0

Compare Source

Fixed
  • Corrupted CFF index data

    there was a subtle bug in cff index implementation that resulted in
    a data corruption. in certain circumstances some items didn't get
    properly encoded. this happened when items were not previously accessed.

    this resulted, for instance, in missing glyphs. but only sometimes
    because indexes might've still contain data that shouldn't've been
    there. in combination with incorrect encoding (see further) this
    resulted in some glyphs still being rendered, sometimes even correctly.

    along with the fix a rather large api change landed. this resulted in
    quite a big diff.

    Alexander Mankuta

  • Incorrect CFF encoding in subsets

    TTFunk used to reuse encoding from the original font. This mapping was
    incorrect for subset fonts which used not just a subset of glyphs but
    also a different encoding.

    A separate issue was that some fonts have empty CFF encoding. This
    incorrect mapping resulted in encoding that mapped all codes to glyph 0.

    This had impact on Prawn in particular. PDF spec explicitly says that
    CFF encoding is not to be used in OpenType fonts. cmap table should
    directly index charstrings in the CFF table. Despite this PDF renderers
    still use CFF encoding to retrieve glyphs. So TTFunk has to discard the
    original CFF encoding and supply its own.

    Alexander Mankuta

  • maxp table

    The table is now correctly parsed and encoded for both TrueType and CFF-based
    OpenType fonts.

    Cameron Dutro, Alexander Mankuta

  • Files are closed sooner

    Files were garbage collected but could stay open for longer than necessary.

    Jon Burgess

  • Long date time in the head table

    The created and modified fields we parsed and encoded with incorrect
    endiannes. Additionally helper methods were added to convert these fields to
    and from Ruby Time.

    Jens Kutilek, Peter Goldstein

  • Removed execution permissions on non-executable files

    Keenan Brock

Changes
  • Minimum Ruby is 2.7

    Alexander Mankuta

  • Performance improvement in subsets construction

    Thomas Leitner

  • CI improvememnts

    Peter Goldstein


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@diegosteiner diegosteiner marked this pull request as draft March 16, 2025 15:30
@renovate
Copy link
Contributor Author

renovate bot commented Jul 22, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant