Skip to content

Add support for cmap format 12 (Unicode > U+FFFF)#158

Open
manh-dan wants to merge 1 commit intodompdf:masterfrom
manh-dan:feature/support-cmap-format-12
Open

Add support for cmap format 12 (Unicode > U+FFFF)#158
manh-dan wants to merge 1 commit intodompdf:masterfrom
manh-dan:feature/support-cmap-format-12

Conversation

@manh-dan
Copy link

🔗 Related Issue

#157


📝 Summary

Briefly describe what this PR does.

Example:
Add support for cmap format 12 to enable rendering of Unicode characters beyond U+FFFF (e.g., CJK Extension B).


🔧 Changes

  • Implement parsing for cmap format 12
  • Update glyph mapping logic to support 32-bit Unicode codepoints
  • Ensure backward compatibility with existing cmap formats

🧪 Testing

Describe how you tested this change.

Example:

  • Used a font containing CJK Extension B characters (e.g., 𠮷 U+20BB7)
  • Rendered PDF before and after the fix
  • Verified glyph mapping is correct
Screenshot from 2026-03-20 21-01-20

@manh-dan manh-dan changed the title git commit -m "Add support for cmap format 12 (Unicode > U+FFFF)" Add support for cmap format 12 (Unicode > U+FFFF) Mar 20, 2026
@manh-dan manh-dan force-pushed the feature/support-cmap-format-12 branch from 6c87651 to 25f5a1c Compare March 20, 2026 14:03
@bsweeney bsweeney added this to the 1.1.0 milestone Mar 20, 2026
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