-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Hi! First of all, thanks for the awesome library. It's really helpful!!
I'm trying to build an editor that renders content as part of the canvas once you are done editing content and noticed space between fonts when rendering using the library is bigger than the space when rendering outside of the library. As we are using word wrapping, some text with long sentences or sentences with words repeated accumulate an error that makes the rasterized HTML show 2 lines when the original HTML shows only 1.
As an example. Content like "aaaaaaaaaaaaaaaaaaaaaa b" will render in 1 line when the editor is showing HTML to the user and will render with 2 lines because of word wrapping when rasterizing HTML because of the width is fixed.
Do you know if there is something we can do to ensure rasterized text and HTML content have the same size if we know the container will have a fixed width?
I'm trying to reproduce it with an example with code from outside of my project here but I can't get it done so it is all likely the issue is with the HTML I'm trying to render but I have no clue what's going on or what can be missing.
Thank you for your hard work and help 😃 !