Comment 44 for bug 375323

Revision history for this message
Zaar Hai (haizaar) wrote : Re: [Bug 375323] Re: ps and eps export with cairo in inkscape no usable with psfrag

Thanks, Adrian! This sounds really nice! I hope this fix will arrive
to end-user distributions soon.

On Sun, Oct 3, 2010 at 4:55 PM, Adrian Johnson <email address hidden> wrote:
>> Can you please give more info on how exactly it has been fixed?
>
> Previously cairo would use the glyph indices to draw text. For example
> the generated PostScript to print "Hello" would look something like:
>
> <0102030304>Tj
>
> The '<>' brackets indicates ascii hexadecimal values. The advantage of
> using this method is cairo can print any character, not just latin
> characters. The problem is if "Hello" is a psfrag tag, psfrag will not
> be able to find it.
>
> Now cairo will separate out all used latin characters into a separate
> font subset and setup the correct font encoding so that the PostScript
> code to print "Hello" will be:
>
> (Hello)Tj
>
> Now psfrag can find the tag and replace the text. I have tested this
> with psfrag and it works for me.
>
> --
> ps and eps export with cairo in inkscape no usable with psfrag
> https://bugs.launchpad.net/bugs/375323
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Confirmed
>
> Bug description:
> In current svn inkscape versions (0.47 and later), pdf and ps/eps export is handled by cairo.
> The problem is that cairo sometimes will export text as paths and sometimes with embeded fonts?!
> Since the text is not exported as a whole plain text to ps/eps by cairo, psfrag in LaTeX is not capable of finding the to replaced text.
>
> This makes inkscape and its eps export function for using with psfrag in LaTeX useless.
>
> Older versions (like 0.46) of inkscape are working fine, with minor other/different problems in the ps/eps export.
>
> Question to the developers: Is where a way of getting this resolved, for example with a question in the save dialog?
> (So, that text is saved as whole without any fonts, since this text is replaced anyway.)
> Or is there a special way inside cairo, which could solve this problem?
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/375323/+subscribe
>

--
Zaar