Skip to content

pdf-font: centralize whole-font fallback - #255

Open
Velli20 wants to merge 1 commit into
mainfrom
refactor-centralize-whole-font-fallback
Open

pdf-font: centralize whole-font fallback#255
Velli20 wants to merge 1 commit into
mainfrom
refactor-centralize-whole-font-fallback

Conversation

@Velli20

@Velli20 Velli20 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Make Font::from_dictionary infallible and route every subtype parsing failure through one bundled TrueType fallback. Remove partial fallback program construction from TrueType and Type0 readers.

Discard PDF widths, encoding, ToUnicode, and flags for substituted fonts so glyph lookup and advance widths come from the bundled cmap and hmtx tables. Limit nested font resources to parsed Type3 fonts.

Make Font::from_dictionary infallible and route every subtype parsing
failure through one bundled TrueType fallback. Remove partial fallback
program construction from TrueType and Type0 readers.

Discard PDF widths, encoding, ToUnicode, and flags for substituted
fonts so glyph lookup and advance widths come from the bundled cmap and
hmtx tables. Limit nested font resources to parsed Type3 fonts.

Co-authored-by: Codex <codex@openai.com>
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.

2 participants