Skip to content

fix font widths discrepancy#1385

Open
smithtim wants to merge 1 commit intoprawnpdf:masterfrom
smithtim:font-subset-discrepancy
Open

fix font widths discrepancy#1385
smithtim wants to merge 1 commit intoprawnpdf:masterfrom
smithtim:font-subset-discrepancy

Conversation

@smithtim
Copy link

@smithtim smithtim commented Aug 1, 2025

There was a discrepancy where embed_simple_font was truncating widths, but embed_composite_font was rounding them. This produced a visual difference when embedding a font with subset: true vs. subset: false. This PR fixes that.

I am also making the full_font_embedding attribute public, because I need it for this PR to pdf-core.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant