Styles remain in text converted to paths
Migrated from https://bugs.launchpad.net/inkscape/+bug/168720
Steps to reproduce:
- create a text object
- convert text to path
What happened?
XML Editor reveals that the converted text object still has its CSS styles applied.
What should have happened?
Upon conversion to path, Inkscape should remove any CSS font styles from object.
Inkscape Version and Operating System:
- Inkscape Version: --
- Operating System: --
- Operating System version: --
Additional Information/Comments:
Original submitter Bug Submitter said:
I had some problems importing SVG files created in Inkscape into other programs (and some problems even in older versions of Inkscape). By trial and error (erasing objects one by one) I could locate the problematic object. After a quick check in the XML Editor I noticed that the text styles remained in the object CSS even after I converted the type object into paths. The problem was solved only when I took out the text styles. Using Inkscape SVN from Autopackage (jun06-2007)
The attached sample file shows the problem. These remaining styles affect Blender (the curves are imported incorrectly) and Adobe Illustrator (it crashes when I try to import the file). This is easily solved removing the text style data from the document XML tree, so I can conclude that those styles are causing the problems. That information is no longer needed (the file was converted to paths), so I think it should be removed.
su_v said:
The persistent text and font style properties of groups or paths can also cause issues in exports using UniConvertor-based output extensions ("ValueError: Cannot find font Slim." or similar).
Related: Bug #390549 “Non optimal SVG” (suggestion 2)
- Saving as Plain SVG doesn't resolve the issue.