Skip to content

pdf-font: accept classic CIDFontType0 font files#164

Merged
Velli20 merged 1 commit into
mainfrom
classic-cid-font
May 22, 2026
Merged

pdf-font: accept classic CIDFontType0 font files#164
Velli20 merged 1 commit into
mainfrom
classic-cid-font

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented May 22, 2026

Preserve the embedded Type 1 program format on Type0 descendant fonts, so CIDFontType0 descriptors with classic /FontFile streams parse and render instead of failing as unsupported.

Thread the stored program format into the canvas Type1 renderer so classic Type 1 CID fonts use the existing rendering path.

Add a regression test for a CIDFontType0 font descriptor with an embedded classic Type 1 /FontFile stream.

Preserve the embedded Type 1 program format on Type0 descendant
fonts, so CIDFontType0 descriptors with classic /FontFile streams
parse and render instead of failing as unsupported.

Thread the stored program format into the canvas Type1 renderer so
classic Type 1 CID fonts use the existing rendering path.

Add a regression test for a CIDFontType0 font descriptor with an
embedded classic Type 1 /FontFile stream.

Co-authored-by: Codex <codex@openai.com>
@Velli20 Velli20 merged commit ea0250f into main May 22, 2026
4 checks passed
@Velli20 Velli20 deleted the classic-cid-font branch May 22, 2026 19:37
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