Replies: 1 comment 1 reply
-
This is a general problem with spacing in And it also doesn't matter where the space is: You can add another one after "Rime" without any change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When converting SVG images to PDF files with PDFkit, there are problems with whitespace being removed. Here is the desired rendering of a page header:
This is displayed in https://editor.verovio.org using the following test MEI data:
Click to view MEI data for test
Here is the output PDF from PDFkit:
The problem is that when going from italics to normal font styling, the space is eaten. When going from normal to italics, the space is not eaten.
Here is the page header being used:
Trying to add non-breaking spaces after italics rends does not change the PDF output:
However adding white text does work, but of course is very hacky:
SVG display:
PDF display:
Any ideas on a less hacky solution? Or perhaps an updated version of PDFkit might work better? Or is there any other equivalent PDF library that might work?
Beta Was this translation helpful? Give feedback.
All reactions