Inkscape.org
Beginners' Questions Simple Inkscape Scripting documentation
  1. #1
    Mike.King Mike.King @Mike.King

    Hope someone can help me !

    I want to start using the Inkscape Extension – Render – Simple Inkscape Scripting.

    It is quite straightforward to use, You type in your code and “Apply” it, like this

     

    It uses the extension that Simple Inkscape Scripting that can be downloaded from https://github.com/spakin/SimpInkScr

    Plus there is helpful documentation

    It uses Python, and there is online assistance on this, for example https://www.w3schools.com/python/default.asp

    The function used in the above code is “text”, which is described in the Simple Inkscape Scripting documentation as follows:

    From several examples, you can see that there are also several parameters/arguments/keywords used with “text()”

    Eg.      font_size

               Text_anchor

               Font_weight

               Fill

              Text_align

               Font_family

    My question is,

    1. although the function text() is described above as “text(msg, (x, y), obj)” ,  there is no reference anywhere to the parameters that can be used and their definitions ?
    2. Is the “text()” function and associated parameters defined in Inkscape, the Simple Inkscape Scripting extension or in Python ?
    3. Where can a person find references to these parameters etc.

    Mike King

  2. #2
    dwhall dwhall @dwhall

    This is CSS (Cascading Style Sheet) styling.

    Check out these tutorials 

    SVG Properties in CSS

    W3Schools CSS Tutorial

     

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Simple Inkscape Scripting documentation