characters not recognized when importing eps or pdf file (typical math fonts)

Bug #1076213 reported by Etienne
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Using Inkscape 0.48.2 r9819

When I try to import eps file, that I produced with Matlab, some characters (not all) are not recognized from fonts such as:
mwa_cmmi10
mwa_cmr10
mwa_cmsy10
mwb_cmmi10
mwb_cmsy10

What is weird is that I do have these fonts installed on my system, I can see them in Inkscape and even type myself the same text correctly in Inkscape.

The problem would be the same from pdf: I used ps2pdf manually to create a pdf, that displays fine in Adobe Reader, but same bug when importing into Inkscape.

Attached is an eps example. You will be able to notice the difference between eps opened in GhostView and the one imported in Inkscape: missing symbols in the legend and labels.

Cheers,
Etienne

Revision history for this message
Etienne (etienne-bresciani) wrote :
su_v (suv-lp)
tags: added: eps pdf
Revision history for this message
su_v (suv-lp) wrote :

> (…) imported in Inkscape: missing symbols in the legend and labels.

Related to or duplicate of Bug #742364 “PDF import forget math sum symbols”?
<https://bugs.launchpad.net/inkscape/+bug/742364>

> The problem would be the same from pdf: (…)

Inkscape actually converts EPS files to PDF with Ghostscript's ps2pdf on-the-fly, and then imports the PDF file using internal routines.

Revision history for this message
Etienne (etienne-bresciani) wrote :

> Related to or duplicate of Bug #742364 “PDF import forget math sum symbols”? <https://bugs.launchpad.net/inkscape/+bug/742364>

Seems very much like this indeed (though from the discussion only since the example file is note reachable).

> Inkscape actually converts EPS files to PDF with Ghostscript's ps2pdf on-the-fly, and then imports the PDF file using internal routines.

Yep. I just meant that the problem indeed did not come from this step and is rather internal to Inkscape.

Revision history for this message
Beluga (buovjaga) wrote :

I get:
Traceback (most recent call last):
  File "ps2pdf-ext.py", line 25, in <module>
    from run_command import run
  File "/usr/share/inkscape/extensions/run_command.py", line 66
    except Exception, inst:
                    ^
SyntaxError: invalid syntax

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Hi, is this still a problem with the latest ghostscript version (and inkscape 0.92.5 or 1.0 or later)? I've tried opening in Inkscape 0.48.2-1 with gs 9.53.3 Windows 10 and it looks more or less the same as 1.0 import.

I don't see any symbols missing (the kerning gives bad results because I don't have the right fonts installed, and I think the italics may be lost, tracked in https://gitlab.com/inkscape/inbox/-/issues/4026), but the font family seems to be preserved.

Note: I've just popped back to this 8 yr issue as part of a manual bug migration over to Inkscape's new bugtracker on GitLab https://alpha.inkscape.org/bug-migration/

I can't comment on comment 4 (I don't get it anyhow).

We now have a poppler/cairo import option, which imports the text as paths, giving better results.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.