Skip to content
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

Save the range of the text of the corresponding cluster in a glyph #109

Closed
LaurenzV opened this issue Aug 30, 2024 · 2 comments
Closed

Save the range of the text of the corresponding cluster in a glyph #109

LaurenzV opened this issue Aug 30, 2024 · 2 comments

Comments

@LaurenzV
Copy link

Okay, so I've brought this up before in #100, but at that point I didn't really know myself what exactly I need, but now I do, so I wanted to bring it up again as a feature request. 😄 When writing text in PDF, I need to provide a cmap for each glyph, which maps each glyph to a (or multiple) corresponding codepoints.

So my question is: Is it feasible to extend the 'Glyph' definition so that it stores a range which points to the byte indices of the original string that correspond to the original cluster the glyph stems from?

@DJMcNab
Copy link
Member

DJMcNab commented Sep 5, 2024

I think this was discussed in #110. Should this issue be closed?

@LaurenzV
Copy link
Author

LaurenzV commented Sep 5, 2024

Oh yeah, I’ve managed to get something to work, it’s not ideal but it works.

@LaurenzV LaurenzV closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
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

No branches or pull requests

2 participants