You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure this is an issue with the PDF exporting library, the library is not great overall unfortunately.
Maybe you can find and test a better one?
But yes, as you say, this is not considered a core OSMD feature, it's mostly a feature of the demo.
I've tried a few workarounds like setting the font to times, or loading a Times New Roman font from binary string and removing attributes from the text node, but I couldn't get text to render. Maybe svg2pdf isn't dealing with it and passing it to jspdf correctly, it seems to be an extension of jspdf, overwriting some code.
So, the best bet is probably still using better PDF/SVG libraries, since fonts like Times New Roman or Arial should be supported everywhere, the browser should probably handle loading the font.
When trying to export OSMD to PDF, using the code provided in the demo, I found that the fret numbers of guitar tablature are not exported.
Demo looks like this:
PDF like this:
Untitled Score.pdf
Here is the example MusicXML I used:
A min pent triplets.musicxml.txt
I know that PDF export is not a core feature, but this might be an issue within OSMD that's easy to fix.
The text was updated successfully, but these errors were encountered: