PDF open: problem with one musical font.

Post questions on how to use or achieve an effect in Inkscape.
marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

PDF open: problem with one musical font.

Postby marce » Thu Jun 12, 2008 8:45 am

Hi! First post in this forum, but long time inkscape user now, even for basic things.

I have a problem. Im printing from a musical score program to pdf. I want to open that PDF in Inkscape (0.46, last version), but even the preview of the document is fine in the import dialog, when Inkscape open it, the font is not showed properly. The font is called "SToccata" and is in the windows\fonts folder properly installed, but Inkscape dont show it in the fonts menu. I tried the workaround of the faq for issues with fonts (even it says that .46 solved the problem). Beyond that, the font is embedded in the pdf.
Below are some pics to ilustrate what i say, and the PDF itself http://stashbox.org/136375/Dia-de-la-bandera-Interludio-Violin-Piano-02.pdf
I tryed with other musical fonts installed in my system, and same issue.

Here is the preview Inkscape shows me when i will import the PDF, all is fine with that preview:
Image

But when i press ok, i get this mumble-rumble:

Image

Here is how is it supposed to be displayed:

Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Thu Jun 12, 2008 10:19 am

There may not be a good solution for this. I don't have that font so can't properly test. When you open the PDF in Inkscape, do you need to be able to edit the text as text? If not, you might like to check you have the option to convert the text the paths under the "Text Handling" option.

Note that the preview doesn't mean much because the preview of a PDF is embeded in the file (i.e. it's generated when the file is saved, not by the application reading the PDF). Also, even if the font is embeded, I don't think Inkscape is capable of displaying it correctly on PC's that don't have that exact font installed. But you have the correct font, so that shouldn't be your problem.

What happens if you open the PDF, select all the gibberish and manually change the font type to "SToccata"?

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Thu Jun 12, 2008 10:29 am

First all, Thanks your help!


microUgly wrote:
What happens if you open the PDF, select all the gibberish and manually change the font type to "SToccata"?



That is part of the problem. All my musical fonts are properly installed in the "windows\fonts" folder. But they are not displayed in Fonts availables in Inkscape. (in the inkscape faq it mention that it is a problem related to .43 version, but that in .46 it says "there is no problem". Im using .46, but there are several fonts that are not displayed, including the musical fonts.)

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Thu Jun 12, 2008 11:22 am

Hmm... well it seems like a bug which I'm not in a position to confirm right now. I seen you posted on the mailing list so hopefully a developer who is more familiar with font support can shed some light for you.

You also might like to look at the launchpad site to see if there has been other reports of 0.46 not seeing font types that it now should. It does sound like a bug, so if you don't find that anything has been reported you might like to post a bug report yourself.

I can't think of any other work arounds.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Fri Jun 13, 2008 12:00 am

Thanks your time and help! I will do what you say about the bug report. Just for the record, i mailed the pdf to a "PDF to SVG" online conversion service, and they returned a file with the same problem that inkscape have.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Fri Jun 13, 2008 9:32 am

marce wrote:Just for the record, i mailed the pdf to a "PDF to SVG" online conversion service, and they returned a file with the same problem that inkscape have.

Note that it's not a problem with the SVG, it's a problem with inkscape. If you determine it was the same problem by opening the SVG in Inkscape, this just proves that Inkscape can't open the required font. If you view that SVG in something else (such as Firefox, Opera or maybe Batik) you may find it displays fine because these programs can load the requested font. that's a guess though, I really don't know what these programs font support is like compared with Inkscape.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Fri Jun 13, 2008 10:28 am

microUgly wrote:
marce wrote:Just for the record, i mailed the pdf to a "PDF to SVG" online conversion service, and they returned a file with the same problem that inkscape have.

Note that it's not a problem with the SVG, it's a problem with inkscape. If you determine it was the same problem by opening the SVG in Inkscape, this just proves that Inkscape can't open the required font. If you view that SVG in something else (such as Firefox, Opera or maybe Batik) you may find it displays fine because these programs can load the requested font. that's a guess though, I really don't know what these programs font support is like compared with Inkscape.


The interesting thing is that the SVG they mailed to me is displayed worst than in Inkscape (the title font that is displayed correctly in Inkscape is displayed with other font in the SVG that they mailed, in Inkscape and firefox). That means that their converter cant read the embedded fonts, or when they convert to SVG they miss the correct name of the fonts, or... well i dont know really.
I will make the bug report in some minutes, hope it helps for newer versions about the font and pdf managent.
Thanks very much your help, very apreciated.

This is how is displayed in Firefox, note how the title font that is displayed correctly in inkscape (screeshots above) is missed in the svg i had from texterity

Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Fri Jun 13, 2008 10:38 am

Ah, perhaps the PDF to SVG convertor strips away all font information. Can you post the SVG for examination?

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Fri Jun 13, 2008 11:43 am

Of course! Here it is the svg file that texterity mailed me as is:

http://stashbox.org/137605/Dia-de-la-ba ... n_0001.svg

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Fri Jun 13, 2008 12:59 pm

marce wrote:Of course! Here it is the svg file that texterity mailed me as is:

http://stashbox.org/137605/Dia-de-la-ba ... n_0001.svg


Additionaly to this, i have made the test with Inkscape in Ubuntu: i installed the SToccata font and then i open the pdf in Inkscape, linux version. Well, the display is not perfect, but at least im seeing musical symbols! i will continue searching what is wrong. Here is an screenshot of what i get under linux:

Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Fri Jun 13, 2008 1:15 pm

well, the font was embeded in that SVG by the convertor. It's possible most viewers don't support embeded fonts, or it might be that SVG doesn't support the embedding of non-SVG fonts. I guess in any case it doesn't help.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Sat Jun 14, 2008 2:21 am

microUgly wrote:well, the font was embeded in that SVG by the convertor. It's possible most viewers don't support embeded fonts, or it might be that SVG doesn't support the embedding of non-SVG fonts. I guess in any case it doesn't help.


Looking the issue in Linux i wonder if the embedded font is for some reason modifyed from the original.

Is there anyway to extract a embedded font?
Is there any truetrype to svg font converter?

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: PDF open: problem with one musical font.

Postby sas » Sat Jun 14, 2008 3:00 am

marce wrote:Is there anyway to extract a embedded font?

I don't know a specific tool for doing this, but it's just base64 encoding, so I'm sure there are some.

Is there any truetrype to svg font converter?

FontForge can do that. But Inkscape 0.46 doesn't understand SVG fonts.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Sat Jun 14, 2008 7:00 am

thanks to make it clear.

Best Regards.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Sun Jun 22, 2008 3:20 pm

Well, im using it anyway with a workaround: I export from my notation program to eps. Then i open it with Scribus and save like SVG.
Then i open it with Inkscape. But, im seeing that most times scribus is enough to make the layout corrections i want.
Thanks all your time and help.
BTW, Inkscape doesnt import PS or EPS, isnt? or im missing it?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: PDF open: problem with one musical font.

Postby microUgly » Sun Jun 22, 2008 3:39 pm

It does with the right tools installed on your PC (How do I open/save this filetype?), but Inkscape is better at opening PDF's rather than EPS and I always advise people to convert their EPS's to PDF for editing in Inkscape.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: PDF open: problem with one musical font.

Postby sas » Sun Jun 22, 2008 6:07 pm

microUgly wrote:I always advise people to convert their EPS's to PDF for editing in Inkscape.

By the way, that's no longer necessary in the latest development versions - they automatically convert the PS/EPS to PDF using Ghostscript's ps2pdf and then open the PDF. You just need to make sure that ps2pdf is in your path.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Mon Jun 23, 2008 5:56 am

Well, now i want to open the EPS file instead of the PDF one, since i dont have luck with this musical font. Scribus open it nearly fine.
Inkscape give me the extension error (just like you described in the pinned thread about it). I added to the path enviroment pstoedit and ps2pdf paths, and now i dont have anymore the unknown file type error. Instead of that, Inkscape says "Runtime error... blah, blah, etc" and quit itself. Much better!! :lol:
Well, just kidding, but i dont really dont know what is going on with all this import pdf/eps mess. Only way by now is trough scribus.

marce
Posts: 11
Joined: Thu Jun 12, 2008 8:18 am

Re: PDF open: problem with one musical font.

Postby marce » Fri Jun 27, 2008 9:29 am

UPDATE:

I posted this issue in the forum of the notation program that i use for produce the scores, "Harmony Assistant". A gentle guy has noted that the problem is the musical truetype font, and he fixed it. Now Inkscape open the PDF fine, and the musical font is available for use in Inkscape.
If you want to read the entire discussion, very interesting if you are in font design, it´s here:

http://www.myriad-online.com/cgi-bin/bb ... 619;start=


Return to “Help with using Inkscape”