Maintaining styles?

Post questions on how to use or achieve an effect in Inkscape.
mathog
Posts: 82
Joined: Tue Feb 08, 2011 6:05 am

Maintaining styles?

Postby mathog » Fri Jan 20, 2012 9:23 am

Imagine a drawing with three types of line and two types of text:

lines/paths: thin, medium, wide
text: small, huge

I make the drawing (assume it is quite complex, with all sorts of different lines and paths and text entries), then decide my thin lines are too thin, but medium and wide are OK, and small is too small, but huge is just right. The only option I see now is to manually go through the drawing selecting lines/paths pasting the new width (with paste style). Same sort of deal to change one class of text. Inkscape has "clone" but that won't do anything useful here as the lines only share their styles, they have all sorts of different lengths/paths.

Now I know SVG can handle this situation, for instance by defining these styles and then referring to them later. But how to do that from within Inkscape, other than by editing the XML? Right click on a line and there seems to be no place to
"set style" or "select style". "Object properties" would have been the obvious place to put it, right in with id,title, etc., but it isn't there. Swatches is sort of close, but that's for fill.

Basically this is very similar to what every word processor does with styles for regions of text.

Is this possible through the GUI somehow?

Thanks.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Maintaining styles?

Postby brynn » Fri Jan 20, 2012 1:48 pm

Hi mathog,
Well your knowledge of Inkscape far exceeds mine, and you've probably already thought of this. The only thing I can think of that might speed this up, is a multiple selection. Instead of selecting each path or text and changing the style one by one, select them all and then change the style all at once. Or I suppose one could write script to do this somehow, but that's WAY over my head, lol :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Maintaining styles?

Postby ~suv » Sat Jan 21, 2012 4:32 am

mathog wrote:Basically this is very similar to what every word processor does with styles for regions of text.

Is this possible through the GUI somehow?
Currently no (Inkscape does not have a GUI to work with internal (or external, linked) style sheets (CSS).

Probably related feature request: #377481 in Inkscape: “Integrated Style-Set Manager


Return to “Help with using Inkscape”