Remove style attribute from Text Object when Text is converted into Object

Bug #1285978 reported by suresh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

Hi,

When we convert any text into Object, its style property assign to group node and for each single char. path is generated and its style attribute is blank. So is it ok to remove the style attribute from the Text Object (i.e. Text converted into path)?

Thanks.

Tags: styles text
Revision history for this message
su_v (suv-lp) wrote :

AFAIU this is a duplicate of
- Bug #168720 (sf1741933) “Text styles remain in type objects converted to paths.”
  <https://bugs.launchpad.net/inkscape/+bug/168720>

(Note: bug #168720 had been filed quite some time ago, and one detail has changed since: since 0.47, text is converted to a group which contains individual paths for each glyph. In older versions text used to be converted to one single path:
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Converting_text_to_path_produces_a_group>)

Changed in inkscape:
importance: Undecided → Wishlist
tags: added: styles text
removed: object-to-path wishlist
Revision history for this message
suresh (suresh-meetsme) wrote :

Hello @suv,

Thanks for the info. Was just asking, is it okay to remove style attribute from the text path object, as its group has a style property?

Revision history for this message
su_v (suv-lp) wrote :

On 2014-02-28 12:04 +0100, suresh wrote:
> Was just asking, is it okay to remove style attribute from the text
> path object, as its group has a style property?

Initially, just after the conversion, the path objects inside the group have no style set (they inherit the style from the parent container) - easily verifiable via XML Editor. Only after editing the group or its contents, the style properties are copied to the individual members (which makes sense usually, to keep the appearance the same). AFAIU this is similar to how style properties based on CSS classes are persistet in 'style' attributes once Inkscape edits objects which are originally styled via internal stylesheet (bug #167937).

It seems to me that you do not want to change how text is converted to path, but how Inkscape later on handles 'unset' style properties if they are initially inherited from parent containers (or style sheets)?

Revision history for this message
su_v (suv-lp) wrote :

Attaching a sample file created with Inkscape 0.48.1 (IIRC that's the code base you usually work with?):
The paths inside the group have either an empty style attribute (just after converting to path), or none at all (for example after duplicating the group, or copy & pasting it).

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.