Comment 13 for bug 375323

Revision history for this message
fogman (sv) wrote :

Hello all,

I did some work on that issue today by looking into the cairo code.
As Adrian pointed out earlier, cairo will subset the string.

One possible workaround i'm doing right now is to find these subsettings.
In the provided example from above, this would be:

<0102030304>Tj

By removing the "<0102030304>Tj" part and putting "(Hello)Tj" at the same place will destroy the specific text in the eps.
Instead of the text, rectangles with the font size are drawn.
But psfrag is now capable to find the exact position of "Hello" inside the eps figure.
The graphic as itself is not touched. (If there would be any graphic e.g. Line, dots etc. in the eps file.)

This is a dirty hack, but it works for me at the moment.

Btw. ps2text, ps2ascii and others will not work with the cairo ps+pdf export!
Someone should file a Bug report to them.

This Bug should be closed, since it is more related to cairo!

Thanks.