-
Notifications
You must be signed in to change notification settings - Fork 8
Fix text layout and breaking #15
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
Conversation
|
Hi @devongovett ! To make the While doing it, I had this doubt that I would really appreciate if you can address it 😄:
Thanks in advance! |
|
@devongovett Also, when we do |
|
@diegomura yeah, GlyphRun start and end are related to glyph indices. slicing also refers to glyph indices. |
|
I'd definitely recommend leaving it as glyph indices by default. It is much more likely that the rest of the code will deal with glyphs rather than characters, so it should be faster and easier to map back to string indices only when needed rather than the other way around. |
|
Thanks @devongovett ! Yes, I thought so, and makes sense. I just pushed some fixes and now the layouting is working fine, using I still got that red overline (do you know what it is for? seems like grammatical warning, but does not makes much sense), and I observed that if I copy the glyphs in the document, they are pasted as . I would guess this is a renderer or pdfkit issue. But it's not related with this. |
|
I would say that I'll create issues for all the things I want to tackle, and I might ask for your feedback/help in some of them. I know you have lots of things going on right now (great work with Parsel btw!), so I don't want to bother you, but you clearly have more experience than me on these topics, so it might be very helpful 😄 |
|
@diegomura Awesome 🎉! Glad you got it working. The red wavy underline is just an attribute in the example: https://github.com/devongovett/textkit/blob/master/temp.js#L37-L38 haha no idea why I implemented that 😉 Copying the glyphs as text from the document doesn't work yet because we don't pass the original string values for each glyph: https://github.com/devongovett/textkit/blob/master/src/renderers/TextRenderer.js#L104. PDFKit will need to be updated to support that. |
|
Totally, feel free to send questions whenever and I'll do my best to answer them quickly. Thanks for working on this! 😄 |
|
@devongovett thanks!! |

No description provided.