type stylesheets for Inkscape?

Post questions on how to use or achieve an effect in Inkscape.
linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

type stylesheets for Inkscape?

Postby linebender » Sat May 25, 2013 8:05 am

Is it possible to create text stylesheets in Inkscape? I only see selection of face and size and a few other attributes but nothing like a style sheet as in InDesign or even Illustrator.

If not a stylesheet tool that resides within Inkscape, how about allowing Inkscape to link to a CSS style sheet, allowing it to have typestyles that way?

thanks for any clues about this!

lb

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: type stylesheets for Inkscape?

Postby flamingolady » Sat May 25, 2013 12:35 pm

I'm not sure what a 'stylesheet' is, so sorry that I cannot help. I did want to mention for you to check out the JessyInk (search these forums) and see if that will help you out until someone more knowledgeable pops on.

linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

Re: type stylesheets for Inkscape?

Postby linebender » Sat May 25, 2013 12:46 pm

oh, ok..here's the concept of a stylesheet..

originated in word processing apps and page layout apps, like quark and indesign, then later on the web as css

A stylesheet contains attributes of a hunk of type..what font, what size, what leading...width, paragraph spacing, etc.

All hunks assigned to that stylesheet take on those attributes. PLUS (and this is the cool part) when you change the stylesheet, all type assigned to it updates instantly!

you can imagine in a large print document, or on a web site, this is pretty valuable to have.

in CSS, stylesheets go beyond type attributes, and include borders, rounded corners, drop shadows, transitions, opacity, etc.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: type stylesheets for Inkscape?

Postby flamingolady » Sun May 26, 2013 5:30 am

Thanks for the explanation, yes, I do see the value in that! Never heard of this in Inkscape before, but, if I'm understanding you correctly, would this be so you can use the Inkscape program on say an IPad and also a computer? Because to my knowledge it hasn't been developed for use beyond a computer. I could be wrong, I could be WAY off on this subject, only making an assumption since this is the first time seeing this subject. So, I haven't seen a stylesheet here, or discussion thereof, but, I also don't follow every thread. I've always thought that Inkscape's layouts are carried over in the XTML language, because it's been made to easily be copied for people who understand it, but that info could be wrong too.
Hope someone with actual knowledge will pop on to answer you.
dee

linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

Re: type stylesheets for Inkscape?

Postby linebender » Sun May 26, 2013 5:38 am

no, my idea would be so that we could introduce type styles to Inkscape, via CSS.

but I am not a programmer so I don't know whether my idea is relatively simple to implement, with the "hooks" already there, or more like trying to build a suspension bridge across the pacific ocean.

minky
Posts: 54
Joined: Sun Apr 07, 2013 8:35 am
Contact:

Re: type stylesheets for Inkscape?

Postby minky » Sun May 26, 2013 10:22 am

I was just wondering why do you want stylesheets in Inkscape? Is it to change the look of the Inkscape interface? I thought CSS was only used for web design.

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: type stylesheets for Inkscape?

Postby Grobe » Sun May 26, 2013 10:50 am

I beleive styles need to be supported by svg before it can be used.
:lol:

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: type stylesheets for Inkscape?

Postby hulf2012 » Sun May 26, 2013 12:12 pm

Hello:

Lets see:
- The SVG file format DOES support stylesheets:
http://www.w3.org/TR/SVG/styling.html

- Inkscape CAN save CSS stylesheets into the svg file, and CAN recognize that a CSS stylesheet is applied to the file, BUT actually (inkscape 0.48) has limitations around this feature:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-Style.html

So please, share any information or improvement around this topic.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: type stylesheets for Inkscape?

Postby flamingolady » Sun May 26, 2013 1:23 pm

Actually I have the same questions as Minky above, thought CSS was for viewing in websites or apps only.
I also wonder how long ago that part of the manual was written. some of the manual gets updated a lot and some is original, so I'm wondering if it's still in it's infancy or maybe someone has worked on it, if that's the case, then maybe you could hook up with the person/people who are developing it.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: type stylesheets for Inkscape?

Postby ragstian » Sun May 26, 2013 1:58 pm

Hi.

Demo of SVG stylesheet: http://svg-wow.org/blog/category/style/
( Click Start SVG demo close to the upper right corner )

Some more info; http://tutorials.jenkov.com/svg/svg-and-css.html

SVG made from the code on above page;
SVG Image

SVG Code;

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    width="60"
    height="140"   
  <style
     type="text/css"
     id="style4">
        circle.myGreen {
            stroke: #006600;
            fill:   #00cc00;
        }
        circle.myRed {
            stroke: #660000;
            fill:   #cc0000;
        }
      </style>
    <circle  class="myGreen" cx="40" cy="40"  r="24"/>
    <circle  class="myRed"   cx="40" cy="100" r="24"/>
</svg>


Needs more experimenting!
Sky's (not) the limit!

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

Re: type stylesheets for Inkscape?

Postby linebender » Mon May 27, 2013 5:26 am

flamingolady wrote:Actually I have the same questions as Minky above, thought CSS was for viewing in websites or apps only.
I also wonder how long ago that part of the manual was written. some of the manual gets updated a lot and some is original, so I'm wondering if it's still in it's infancy or maybe someone has worked on it, if that's the case, then maybe you could hook up with the person/people who are developing it.



respectfully..I explain why in my earlier posts. my interest is in having type styles for Inkscape, and I thought that css might be one way of getting them.

lb


Return to “Help with using Inkscape”