Save the range of the text of the corresponding cluster in a glyph
Closed this issue · 2 comments
LaurenzV commented
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?
LaurenzV commented
Oh yeah, I’ve managed to get something to work, it’s not ideal but it works.