showstopper: font embedding doesn't work as expected

Bug #388919 reported by Paaguti-hotmail
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

This is a showstopper for me...
I use inkscape for graphics in my scientific papers, which I produce using LaTeX. After
some trial and error I produce "conforming" papers in three steps:

1) from inkscape to EPS, embedding fonts and creating a bounding box

inkscape -B -F -E kk.eps kk.svg

2) from eps to pdf

epstopdf kk.eps

3) LaTEX

pdflatex main

I have tried 0.47 with a two step process:

inkscape -A kk.pdf kk.svg
pdflatex main

And the fonts in the figures don't get embedded and hence the paper doesn't conform
to specs used by IEEE, IARIA, ACM & others...

These organisations mandate that when running the produced PDF through the pdfinfo
program, the columns emb and sub are 'yes': e.g.

pdffonts paag.pdf

name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
SAUATQ+MSAM7 Type 1 yes yes no 406 0
UOBGDN+NimbusSanL-Regu Type 1 yes yes no 570 0

PS: Some even mandate Type1 fonts and it would be good to have the possibility
to select Type1 fonts only from the text tool... but that's an enhancement
to ask for once the embedding problem is solved...

Revision history for this message
Alexandre Prokoudine (alexandre-prokoudine) wrote :

What version are we talking about? :)

Changed in inkscape:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Paaguti-hotmail (paaguti-hotmail) wrote : RE: [Bug 388919] Re: showstopper: font embedding doesn't work as expected

I've been testing the release candidate of 0.47 and comparing
it with 0.46

> Date: Thu, 25 Jun 2009 17:21:06 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 388919] Re: showstopper: font embedding doesn't work as expected
>
> What version are we talking about? :)
>
> ** Changed in: inkscape
> Importance: Undecided => Medium
>
> ** Changed in: inkscape
> Status: New => Incomplete
>
> --
> showstopper: font embedding doesn't work as expected
> https://bugs.launchpad.net/bugs/388919
> You received this bug notification because you are a direct subscriber
> of the bug.

_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx

tags: added: fonts pdf
Revision history for this message
Pablo Trabajos (pajarico) wrote :

Could the reporter detail what the last step does? I don't use PDFlatex but it seems to be a way for creating PDF presentations from Latex sources, am I correct? However, I don't understand what are you trying to do. I'm guessing you use graphics exported from Inkscape in PDF, place them in a Latex file and export a final PDF file, correct?

We need the exported PDF file and the final PDF file. It's not possible to determine where the fonts are being dropped with only your explanation. Inkscape should embed any font in use.

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I may be of help here.
If you look into the attached file, you'll see a directory (figs) containing three files:
- image.svg: the original, created in inkscape
- image_inkscape046.eps: that is, image.svg exported to eps (with every option disabled, in particular the "convert text to path") with inkscape 0.46
- image_inkscape046.eps: same thing, with 0.47

For the sake of clarity, let's make an example. We want to include the image in a latex file, changing the font of various image text boxes in order to use latex own font (this is common for scientific papers, with the package pstricks).
The point is that pstricks basically scans the .eps looking for some text (that the user has to specify) to replace.
Now, with the 0.46 version pstricks works, as it can find the word it is looking for (let's take "body" as test word):

$cat image_inkscape046.eps | grep body
(Originbody) show
(Xbody) show
(Zbody) show
(Ybody) show

While in the 0.47 version:
$cat image_inkscape047.eps|grep body
<no output>

The problem is that, even if "convert text to path" is unchecked in exporting to eps, text is converted to path nontheless.

I hope I've clarified the problem. While this seems a niche bug, it will actually affect a lot of people writing papers with inkscape.
Bye

Revision history for this message
su_v (suv-lp) wrote :

duplicate of bug #375323 “ps and eps export with cairo in inkscape no usable with psfrag”?
<https://bugs.launchpad.net/inkscape/+bug/375323>

Revision history for this message
su_v (suv-lp) wrote :

(Note: Comment #5 only refers to the issue as described in comment #4 by Luca Invernizzi)

@Paaguti-hotmail - if the reported issue still persists in current stable 0.48.1:
- Could you attach sample files (SVG, PDF) and a list of fonts used?
- Which platform/OS did you test this issue on?
- If on Linux or MacPorts, which cairo version does inkscape use?
- Which poppler version is installed? (pdffonts is provided by poppler)

Else could you please confirm that font embedding and subsetting [1] works in current stable 0.48.1 as expected?

[1] please test with a recent poppler version (>= 1.10) because pdffonts had a problem not reporting some fonts as subsetted, see bug #336646

tags: added: exporting
Revision history for this message
Paaguti-hotmail (paaguti-hotmail) wrote :

I'm using 0.48.1 on different ubuntu distros (10.04, 10.10 and 11.04) and on MacOS 10.6 and
font embedding works as expected. Thanks and sorry for nor reporting on this. BTW, I have
a workaround that allows me to use inkscape from the command-line (or make) in MacOS.
Where could I contribute it?

Thanks,/PA

----------------------------------------
> Date: Fri, 3 Jun 2011 07:46:01 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 388919] Re: showstopper: font embedding doesn't work as expected
>
> (Note: Comment #5 only refers to the issue as described in comment #4 by
> Luca Invernizzi)
>
> @Paaguti-hotmail - if the reported issue still persists in current stable 0.48.1:
> - Could you attach sample files (SVG, PDF) and a list of fonts used?
> - Which platform/OS did you test this issue on?
> - If on Linux or MacPorts, which cairo version does inkscape use?
> - Which poppler version is installed? (pdffonts is provided by poppler)
>
> Else could you please confirm that font embedding and subsetting [1]
> works in current stable 0.48.1 as expected?
>
>
> [1] please test with a recent poppler version (>= 1.10) because pdffonts had a problem not reporting some fonts as subsetted, see bug #336646
>
> ** Tags added: exporting
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/388919
>
> Title:
> showstopper: font embedding doesn't work as expected
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/388919/+subscribe

Revision history for this message
su_v (suv-lp) wrote :

> I'm using 0.48.1 (…) and font embedding works as expected

Thank you for reporting back -> closing this report as 'Fix Released' (no milestone since it's not clear what has changed).

> a workaround that allows me to use inkscape from the
> command-line (or make) in MacOS.
> Where could I contribute it?

Did you create a shell script based on those inside the application bundle (to set up the environment), and put the shell script into your path? Or is it based on changes inside the application bundle itself? If you would like to share and discuss your solution, please file a new bug report, describe it in detail and attach any changed or external files. The report will be tagged and marked as 'Wishlist' by the bug team.

Changed in inkscape:
status: Incomplete → Fix Released
Revision history for this message
Paaguti-hotmail (paaguti-hotmail) wrote :

I have submitted the work around proposal :-) Simple and effective. Took
me some time to figure out, though :-)

Cheers,/PA

> Date: Sun, 5 Jun 2011 06:22:52 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 388919] Re: showstopper: font embedding doesn't work as expected
>
> > I'm using 0.48.1 (…) and font embedding works as expected
>
> Thank you for reporting back -> closing this report as 'Fix Released'
> (no milestone since it's not clear what has changed).
>
> > a workaround that allows me to use inkscape from the
> > command-line (or make) in MacOS.
> > Where could I contribute it?
>
> Did you create a shell script based on those inside the application
> bundle (to set up the environment), and put the shell script into your
> path? Or is it based on changes inside the application bundle itself? If
> you would like to share and discuss your solution, please file a new bug
> report, describe it in detail and attach any changed or external files.
> The report will be tagged and marked as 'Wishlist' by the bug team.
>
> ** Changed in: inkscape
> Status: Incomplete => Fix Released
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/388919
>
> Title:
> showstopper: font embedding doesn't work as expected
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/388919/+subscribe

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

Other bug subscribers

Bug attachments

Remote bug watches

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