Creating vector graphics from score
This may have been raised before, but I cannot seem to create a vector graphics file of sufficient print quality.
Related problems have been reported here in the past:
- https://musescore.org/en/node/105436
- https://musescore.org/en/node/33701
- https://musescore.org/en/node/10088
The results of my export to SVG or PDf are attached as a screen shot. The files are screenshots from the exported files opened in Adobe Illustrator (and similarly Inkscape).
Screenshot of PDF
Screenshot of SVG
The issue with PDF: some embedded fonts are missing. Why Acrobat is able to display the score is a bit beyond me. I tried to load some TTF fonts through a Font Manager (so I need not install the fonts), but that did not solve the issue.
InDesign does display the placed PDF correctly and seems to create a usable PDF.
Is there a work-around to make vector graphics work in vector graphics applications such as Illustrator or Inkscape? I either need a clean SVG file or a workable PDF file (with embedded fonts).
System: Windows 10 Pro (build 10586.218) 64-bits.
Cheers,
Dave
Comments
For the PDF export, are you using the built in export facility (File / Export)? That is the only supported method. You also should be sure *not* to have MuseScore's internal fonts installed on your system - this will cause conflicts if there is any discrepancy in versions.
In reply to For the PDF export, are you by Marc Sabatella
Thanks Marc,
Yes, I used File > Export to create the PDF.
I did not install any music fonts in Windows.
As a rule, I keep the installed fonts to an absolute minimum. Whenever I need a special font, I use a font manager unless some application like MuseScore does the font handling for me.
For some reason, the CID) fonts are somehow not embedded (properly) in the PDF.
Adobe Acrobat X, shows these fonts as being embedded in the PDF:
However, when open the PDF in Adobe Illustrator, it warns me that these fonts are missing:
The result is a messy score.
Cheers,
Dave
In reply to Thanks Marc, Yes, I used File by davepmiddleton
Can you post a score and PDF file you are having problems with? It all works fine for me.
Or maybe you are saying that the PDF *displays* fine but Illustrator is having trouble dealing with the embedded subset? Might be a question to ask on their forums. FWIW, we use the Qt libraries to create the PDF, so however we embed fonts is preusmably the same as all other applications that use the Qt libraries.
In reply to Can you post a score and PDF by Marc Sabatella
Enclosed, you will find the MuseScore file I just started and the PDF I created with build version 2.03.
Cheers,
Dave
In reply to Enclosed, you will find the by davepmiddleton
The PDF looks fine to me, so I'm guessing it's a problem with Illustrator as I saqid above. Or at least, perhaps something we/Qt are doing that other programs seem to be fine with but Illustrator for whatever reason cannot handle. Something you should probably follow up with on an Illustrator support forum, to find out if it is a bug there or soemthing we/Qt are supposed to be doing differently.
In reply to The PDF looks fine to me, so by Marc Sabatella
Thanks Marc,
The PDF looks good indeed.
However, it is not just Illustrator that has a problem with the pdf.
Once opened in Inkscape the fonts are (very) messy too:
Illustrator gives a warning upfront to make clear where the problem is. It's a bit harder to find in Inkscape.
What I do not understand: how can the PDF look good if there is an issue with the embedded fonts somehow? Maybe it is an issue of an embedded font subset?
Bottom line: the issue
I want to use score to create e.g. a vector illustration, but don't have a quality vector file to begin with. The SVG is low quality and the PDF is unusable.
Cheers,
Dave
Musescore 2.0.3
I get the same results as you. Native SVG export has too huge notes. But not on all scores, some are ok, although all use Emmentaler.
But for your scores:
Using Inkscape can work from PDF to usable SVGs when checking "use poppler" in the import Dialog. But you can always only import one page.
Or you can use the command line tool poppler to convert PDF to SVGs
http://blog.alivate.com.au/poppler-windows/
Using Poppler (in builtin version in Inkscape or as command line tool) will convert any fonts of your PDF to paths in the SVGs.
In reply to Musescore 2.0.3 I get the by musikai
Thanks a lot.
That seems promising.
I will try this option tomorrow and will hopefully post the confirmation then.
Cheers,
Dave
In reply to Musescore 2.0.3 I get the by musikai
Well, I couldn't wait.
All I can say is: it works!
So I can open the pdf in Inkscape using the Poppler import option.
I never used this option before. It turns text into vector paths, which is what I want in the first place.
Now I can create a good basis for vector illustration based on score.
Thanks again.
Cheers,
Dave
In reply to Well, I couldn't wait. All I by davepmiddleton
The fonts are in the PDF in the first place so illustrator, like inkscape should be able to do the conversion to paths. See http://creativebits.org/illustrator/how_open_pdf_illustrator_if_you_don…
Regarding SVG, it would be very helpful if anyone could post a score that render badly in SVG. Together with the operating system, MuseScore version used, and SVG viewer used.
In reply to The fonts are in the PDF in by [DELETED] 5
That is what I would think. However, Illustrator cannot find the embedded fonts so creating outlines (paths) from the fonts it does not have, will not work. The result is the same as shown in the screenshots of the first post, but now converted to paths.
Never mind Illustrator, Inkscape does the job well with the Poppler import option, so I will have good quality vector graphics to work with. This is my work-around I was looking for.
You have my MuseScore file to analyse the SVG file. One can read the score in the SVG, but it is of low quality.
Cheers,
Dave
In reply to The fonts are in the PDF in by [DELETED] 5
Also note: MuseScore 2.0.3 SVG Export does not use fonts, even for text. It's all paths and polylines, 100%. So that cannot be the problem.
In reply to Also note: MuseScore 2.0.3 by sideways
Correct; it isn't.
There are two different problems:
Before the Inkscape Poppler import option for PDF, I had no clean vector file to work with to create illustrations from score.
In reply to Correct; it isn't. There are by davepmiddleton
If you want a real solution to your problem, please post a .mscz file and the resulting .svg export file. Then they can be examined by others, like me.
In reply to If you want a real solution by sideways
Thanks for helping out.
The MuseScore file can be found here: https://musescore.org/en/node/106941#comment-482601
Enclosed, you will find the SVG file I exported from MuseScore 2.03.
Beethoven Symphony_No_8_in_F_Major.svg
Cheers,
Dave
In reply to Thanks for helping out. The by davepmiddleton
The svg just suffers from the bug that the symbols weren't scaled like the rest of the score. Sideways already made a fix for this so this will be solved in future versions.
See:
https://musescore.org/en/node/107081
Thanks to sideways !
In reply to Thanks for helping out. The by davepmiddleton
I have reproduced the issue in SVG Export and will provide details when I have them. OK I just read that my latest fix fixes this. I was running against the latest master first. I just tested it against my PR code, and yes this test case is solved by the new code.
...and to be fair, I may have fixed this issue, but I also created it. I tested your file against 2.0.2, prior to other SVG changes I made, and the file exported properly too.
In reply to I have reproduced the issue by sideways
Thanks a lot for looking into this and fixing it.
Cheers,
Dave
In reply to Thanks a lot for looking into by davepmiddleton
FYI - this fix will be part of the next release, 2.0.4
It is the same issue as this:
https://musescore.org/en/node/107081#comment-484236
In reply to FYI - this fix will be part by sideways
Thank you very much!
I read it in the other posts as well.
I am looking to installing the new release soon.
Cheers,
Dave
In reply to Thank you very much! I read by davepmiddleton
2.0.4 is not yet released, and probably won't be anytime soon.
In reply to 2.0.4 is not yet released, by Jojo-Schmitz
Interested, does this fix include Grace Notes?
Because in 2.0.3 these aren't scaled smaller even when the Staff scaling is default.
Attached is a score with bigger Staff scaling and with Grace notes to test.
In reply to Interested, does this fix by musikai
Attached is an SVG export of your grace notes score from a build that includes this fix. It looks good to me.
In reply to Attached is an SVG export of by sideways
Ah, glad to see it works!