Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Emit non BMP chars as XObjects in PDF#20633
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Test that character beyond the Basic Multilingual Plane are supported in PDFfiles with Type 42 fonts. The example tests STIX Sans math chars and a charfrom an old script.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Currently, the CID maps only support 2-byte fixed-width characters. Unicodepoints beyond the Basic Multilingual Plane cannot be used. This comment followsthe strategy taken for Type 3 fonts. Any char with a code point > 65535 isemitted as an XObject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'm approving in lieu of@aitikgupta, not because I understand the font handling here.
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Closes#20616
This PR address#20616 and emits Type 42 chars from beyond the Basic Multilingual Plane as XObjects, similar to the treatment of multi-byte chars in Type 3 fonts.
This PR builds on top of#20615.
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).