Kerning breaks psfrag compatibiliy in Cairo eps export

Bug #1249361 reported by Ferdinand Rau on 2013-11-08
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

When using Cairo to save a drawing as .eps (or .ps) document, text is not preserved as is.
Instead, presumably because of kerning, ")<random number>(" is inserted into longer blocks of text every few characters.

The resulting eps file therefore contains text blocks like this:
> BT
> 12.8 0 0 12.8 90.926318 24.343752 Tm
> /f-0-0 1 Tf
> [(One line )3(of continuous )4(text.)]TJ
> ET
instead of:
> BT
> 12.8 0 0 12.8 90.926318 24.343752 Tm
> /f-0-0 1 Tf
> [(One line of continuous text.)]TJ
> ET

Note that this is true even if the "Monospace" font (or other monospaced fonts) are used.

Because of this, tools like psfrag cannot be used with the resulting eps file which can be quite annoying. I am aware of the general discussion on psfrag compatibility: However, I think that this is a separate issue.
I am using Inkscape 0.48.4 on Windows 7 SP1, please find attached an example .svg file and the resulting .eps

Ferdinand Rau (rauferd) wrote :
description: updated
description: updated
su_v (suv-lp) on 2013-12-10
tags: added: psfrag

I am affected by this bug. I am forced to work with Inkscape 0.46 in order to use psfrag

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

Other bug subscribers