Skip to content

Canonicalize font subset tags - #38

Merged
SimonCropp merged 1 commit into
mainfrom
subset-font-tags
Sep 29, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
subset-font-tags

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

A subset font's name carries a six letter tag (/BaseFont /IIJUVL+OpenSans) that some producers, Aspose.PDF among them, pick at random on every save. Each distinct tag after /BaseFont or /FontName is now replaced, in order of first appearance, with AAAAAA, AAAAAB, and so on. The replacement is length-preserving, so the cross-reference table needs no repair, and an already normalized document maps each tag onto itself, so a second pass changes and reports nothing.

A subset font's name carries a six letter tag (/BaseFont /IIJUVL+OpenSans) that some producers,
Aspose.PDF among them, pick at random on every save. Each distinct tag after /BaseFont or /FontName
is now replaced, in order of first appearance, with AAAAAA, AAAAAB, and so on. The replacement is
length-preserving, so the cross-reference table needs no repair, and an already normalized document
maps each tag onto itself, so a second pass changes and reports nothing.
@SimonCropp SimonCropp added this to the 2.1.0 milestone Sep 29, 2026
@SimonCropp
SimonCropp merged commit 04c4c29 into main Sep 29, 2026
4 checks passed
@SimonCropp
SimonCropp deleted the subset-font-tags branch September 29, 2026 23:35
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