Saving file into SVG format produces some weird results.

• Jul 15, 2012 - 14:53

Saving file into SVG format produces some weird results.

1 It losses the top of the notes.
2 An produces a box on the top left hand side.

Are these bugs or am I doing something wrong?

I have attached an example.

https://dl.dropbox.com/u/53724979/Reunion_Example.mscz.svg

Is there a work around?

Wena


Comments

What operating system are you using?

Could you try in the nightly builds (if you were using 1.2)?

In terms of development, the focus is now on 2.0.

:)

It's loaded OK into my Vector graphics software.

Which vector graphics package are you using?

Oh and BTW SVG stands for Scalable Vector Graphics

Trying to load this into anything not equipped properly to dealwith it - eg Microsoft Word will result in weird behaviour

In reply to by ChurchOrganist

OS is Windows XP pro.
The version of MuseScore is 1.2

My vector graphics software is Inkscape. SVG is the native format of this program. I do have other software that will open SVG format. ChurchOrganist , it would be interesting to know what software did you use to open the file?

I want the file as SVG because of the very fact that it works better than anything else in Scribus 1.4 to lay out pages, which makes a very good job.

I will see what will happen with the same file in Scribus.

Wena D. Parry

In reply to by Wena D Parry

I use Serif DrawPlus X4 for Vector Graphics.

It has many functions you wouldn't expect in software of its price, including the ability to do stop frame animations, and also the ability to open and edit PDF files.

I'm surprised Inkscape had a problem - it is fairly mature Open Source software.

The one thing I did have to do after loading was shrink the image so that it would fit on an A4 sheet.

Maybe that is the problem in Inkscape?

In reply to by ChurchOrganist

I tried loading Wena's file in my Inkscape and the result correspond to Wena's description of the issue (a screen shot is attached).

Then I tried doing the same on my MuseScore (exporting Marc's Reunion to SVG) and, to my surprize, I got exactly the same result!

It seems like another font is substituted for the MuseScore builtin font(s); as the built-in font uses glyphs of unusual Unicode points, most are missing; other, like the time signature digits, are obviously in a different font. Opening it with Firefox, boxes with Unicode points codes are shown instead of MuseScore symbols.

So, we do have a problem...

@Wena: the 'box' in the upper left corner is not a real box: it is how Inkscape shows the document page size; it does not correspond to the actual music page, which is inconvenient, but not unexpected: it is not infrequent for different applications to disagree on the page size of an SVG document; it is also easy to fix.

Note: all my manipulations were done under Win 7 using MuseScore 1.2 and faily latest Inkscape and Firefox.

M.

Attachment Size
Reunion_SVG_Inkscape_screenshot.png 17.15 KB

In reply to by Miwarre

Doh! Light dawns.

You need to have the Mscore fonts installed in order for Vector Graphics software to render MuseScore SVGs successfully!

You can find them if you dig around on SourceForge, or if you're stuck message me and I'll email them to you!

In reply to by ChurchOrganist

If the MuseScore built-in fonts are required for a correct rendering of exported vector graphics (SVG, in this case), something is probably wrong with the export.

Installing in the OS the same fonts which MuseScore makes available when run may have other side effects and is in general discouraged.

I made a quick check with ver 2.0 and no font is needed to correctly display SVG exported by it: all symbols (which are font glyphs inside the program) are converted to paths when exported to SVG.

If ver. 1.2 exports custom font glyphs as font glyphs then something is wrong. I am surprized that nobody noticed until now; a bug report is in order and a word by the core developers could be useful, I think.

M.

In reply to by ChurchOrganist

Good thing with PDF is that while the font based graphics require the fonts (text graphics is not converted to paths), the font files are embedded in the PDF file. But then again, a PDF editor is not capable (or allowed?) to use the embedded font files. Technically one would have to extract the font files from the PDF file, then install them on the system, before the PDF editor can show the fonts correctly. I'm no expert on this and my explanation might contain some misinformation, but the over all principle is somewhat like this.
When I say embedded font files, I bet it's more like some font format of Adobe's own.
A working SVG export in MuseScore should definitely convert all font related graphics to paths. To my knowledge, the SVG format doesn't include any embedded font graphics.

In reply to by Miwarre

Svg export in 1.2 is broken. The glyphs are not exported and you need to install the internal MuseScore fonts. This is a limitation of the Qt library used.

MuseScore 2.0 uses a hacked version of the Qt svg rendering engine and outputs the outline of every glyph. This works well execept the resulting file may get big. One known problem is that clipping is not implemented and therefore does not work.

In reply to by Jojo-Schmitz

Thank you Jojo-Schmitz I managed to get last night's version, it seems as if it had no export system on it to see if the file. I attempted an svg and pdf but nether of them worked it may well be that is part of the intention of development at this time.

However, I found v 2.00 to interest me greatly and hope to continue taking an interest in it.

Wena

Do you still have an unanswered question? Please log in first to post your question.