Skip to content

Support otf cff fonts #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed

Conversation

kyasu1
Copy link
Contributor

@kyasu1 kyasu1 commented Mar 29, 2025

Hi, I have implemented support for OTF fonts in CFF format (CIDFontType0) with partial success.

The generated PDFs render correctly in Adobe Acrobat, Safari, and Preview.app (Mac), but they do not display properly in Chrome, Firefox, or PDF.js-based tools. I suspect the issue stems from how the custom CMap resource is written, though my understanding could be completely off.

Another issue is that the process is very slow, likely because it reads large tables multiple times.

Additionally, I have updated the subset font to include glyph ID 0, as per the allsorts documentation.

Please take a look and share your opinion.

Thanks!

@fschutt
Copy link
Owner

fschutt commented Mar 31, 2025

I've seen it, but I hate putting font handling in a PDF library... if there's any way to upstream it to allsorts, that would be better.

@kyasu1
Copy link
Contributor Author

kyasu1 commented Apr 7, 2025

#215

@kyasu1 kyasu1 closed this Apr 7, 2025
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