Skip to content

pdf-font: accept bf Type0 encoding CMaps#153

Merged
Velli20 merged 1 commit into
mainfrom
bf-cmap
May 14, 2026
Merged

pdf-font: accept bf Type0 encoding CMaps#153
Velli20 merged 1 commit into
mainfrom
bf-cmap

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented May 14, 2026

Treat trailing %%EOF lines inside embedded CMaps as ordinary comments so Type0 encoding streams can parse PostScript-style resource trailers without failing at the end of the stream.

Support beginbfchar and beginbfrange mappings in Type0 /Encoding CMaps by interpreting hex destinations as CIDs, and add regression tests covering the CM10-style encoding stream shape.

Document the Type0 encoding parser helpers to make the accepted token forms and error normalization behavior explicit.

Treat trailing %%EOF lines inside embedded CMaps as ordinary
comments so Type0 encoding streams can parse PostScript-style
resource trailers without failing at the end of the stream.

Support beginbfchar and beginbfrange mappings in Type0 /Encoding
CMaps by interpreting hex destinations as CIDs, and add
regression tests covering the CM10-style encoding stream shape.

Document the Type0 encoding parser helpers to make the accepted
token forms and error normalization behavior explicit.

Co-authored-by: Codex <codex@openai.com>
@Velli20 Velli20 merged commit d6841b2 into main May 14, 2026
4 checks passed
@Velli20 Velli20 deleted the bf-cmap branch May 14, 2026 07:50
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