On 2008-March-29 , at 18:43 , Miklós Erdélyi wrote:
On Sat, Mar 29, 2008 at 12:07 PM, jiho <jo.irisson@...400...> wrote:
[..]
- improve font support in import/export operations . Cairo PDF export frequently mangles the kerning of fonts
and has overall less support than Inkscape for text. It may be a problem with fontconfig/pango/cairo and not with Inkscape but it would be something to investigate
This is so because the printing-subsystem based PDF exporter recalculates kerning information. Currently, only the Cairo renderer based PDF exporter can export text properly (ie. it lays out text the same way as Inkscape does because it uses the same information from libnrtype as the internal renderer). In order to provide an easily implementable interface, the printing subsystem gives much less information to the printer driver than actually what is available.
Actually, the issues I had were with the Cairo PDF exporter. not with printing. so I guess that even this one has trouble sometimes. The issue really seamed to be with font support. I have some test files around but I guess that, if the problem is font based, it will be difficult to investigate outside of my particular setup.
. PDF import via poppler puts all the text attributes in the
tspan element, rather than in the text one. Inkscape, when selecting such a text element, sees it as having no style, until the text element is entered, with the text tool, in which case Inkscape sees the tspan info. having a kind of import filter in Inkscape which would extract the info from the tspan, copy it to the text element and only keep in the tspan the differences from what's in <text> would make these imported documents much more enjoyable to work with.
I'm planning to add this tspan/text "feature" to the PDF import extension along with the stylesheet optimizer. These'll be included in my GSoC proposal for PDF export/import enhancements.
That would be very nice. If it can be made somehow independent from the pdf import, just like a filter hooked up at the end of the import process, it would be even nicer because other importer would benefit from it.
JiHO --- http://jo.irisson.free.fr/