setting default line thickness
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
setting default line thickness
Hello, I am an Inkscape newbee and I want to set a certain line thickness as a default value.
Browsing this forum concerning this, I discovered that this can be done by right clicking on the
(straight) line tool and setting there the line thickness. I thought this was done by setting 'Ctrl+click dot size'. But this seems not to work.
Am I doing something wrong or did I forget something to do?
Thanks.
Browsing this forum concerning this, I discovered that this can be done by right clicking on the
(straight) line tool and setting there the line thickness. I thought this was done by setting 'Ctrl+click dot size'. But this seems not to work.
Am I doing something wrong or did I forget something to do?
Thanks.
Re: Setting default line thickness.
Hi
(one way) To set the default thickness:
Draw a line. Change the stroke-width to your desired value.
Leave the line selected. (F1 - Then click on line)
Go to preferences (Shift Ctrl P).
Select Tool - Pen
Click Take from selection.
Here the line width is set to 6 pixels.
(Click Image for larger version)
Happy "Inkscapeing"!
RGDS
Ragnar
(one way) To set the default thickness:
Draw a line. Change the stroke-width to your desired value.
Leave the line selected. (F1 - Then click on line)
Go to preferences (Shift Ctrl P).
Select Tool - Pen
Click Take from selection.
Here the line width is set to 6 pixels.
(Click Image for larger version)
Happy "Inkscapeing"!
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
Thanks ragstian for your response.
I did exactly what you wrote but after that procedure
Inkscape refuses to take my chosen line thickness (1,2) as a default.
It keeps the thickness on 1,0 whatever value for thickness I take.
I did exactly what you wrote but after that procedure
Inkscape refuses to take my chosen line thickness (1,2) as a default.
It keeps the thickness on 1,0 whatever value for thickness I take.
Re: setting default line thickness
Hi.
Which inkscape version?
What OS?
RGDS
Ragnar
Which inkscape version?
What OS?
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
ragstian wrote:Hi.
Which inkscape version?
What OS?
RGDS
Ragnar
Inkscape version 0.48
O.S. Linux Mint 17.1 64 bit MATE
Analogue man in a digital world
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: setting default line thickness
Unable to replicate the issue in Mate 32bit. :-\
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
tylerdurden wrote:Unable to replicate the issue in Mate 32bit. :-\
Just re checked, but still the same problem .
Analogue man in a digital world
Re: setting default line thickness
My question seems a bit stupid but do you set the thickness with a comma and not a period?
The thickness must be set like this 1.2 and not 1,2
The thickness must be set like this 1.2 and not 1,2
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
Janne wrote:My question seems a bit stupid but do you set the thickness with a comma and not a period?
The thickness must be set like this 1.2 and not 1,2
Well I did had a close look but it is definitely 1,2 in stead of 1.2 .
I am an absolute newbee on Inkscape and was surprised that a comma (,) and not a dot (.)
is used when an English language version is used. Putting a dot does not display a result so it must be a comma.
Analogue man in a digital world
Re: setting default line thickness
Hello,
Using Ubuntu 14.10 32 bits, Inkscape 0.48.5 r10040.
Just following the method describe here:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... ences.html
at least in the pencil tool, it works,
Or, if you want to be more technic:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... references
Using Ubuntu 14.10 32 bits, Inkscape 0.48.5 r10040.
Just following the method describe here:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... ences.html
at least in the pencil tool, it works,
Or, if you want to be more technic:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... references
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.
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.
Re: setting default line thickness
Well - mine is a dot
Re: setting default line thickness
Hi
Janne- mine is a comma!
Inkscape is "smart enough" to use the decimal separator set in your "locale" setting.
In the US a period is used as a separator - in Europe a comma is used.
Janne- mine is a comma!
Inkscape is "smart enough" to use the decimal separator set in your "locale" setting.
In the US a period is used as a separator - in Europe a comma is used.
Last edited by ragstian on Sat Feb 28, 2015 2:32 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: setting default line thickness
ragstian wrote:Hi
J
In the US a period is used as a separator - in Europe a comma is used.
RGDS
Ragnar
Oh, yeah - being Danish (living in the USA) confusion might be an issue
Re: setting default line thickness
AnalogueMan, I think the instructions given forgot to say that you have to click "This tool's own style" in Inkscape Preferences. I always click it before Take from Selection, but I'm not sure if the sequence matters.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
Two points are very annoying for me:
1. Inkscape chooses for you which number style is used for a decimal point: a 'comma' for people who live in Continental Europe and a 'dot' for those who are living outside the continent.
My O.S. is (and always was) an English language version and, although I am living on the 'Continent', I am used to work with dots in stead of comma's and I want to keep it that way.
There MUST be a possibility to change this 'smart' choice of Inkscape, but I have to figure out how to do this.
2. Apart from the 'decimal point question', whatever I try, it is impossible to set a default value for line thickness other than that 1,0 px (or 1.0 px) which is already there.
I have to do some (internet)research here to solve this I am afraid.....
1. Inkscape chooses for you which number style is used for a decimal point: a 'comma' for people who live in Continental Europe and a 'dot' for those who are living outside the continent.
My O.S. is (and always was) an English language version and, although I am living on the 'Continent', I am used to work with dots in stead of comma's and I want to keep it that way.
There MUST be a possibility to change this 'smart' choice of Inkscape, but I have to figure out how to do this.
2. Apart from the 'decimal point question', whatever I try, it is impossible to set a default value for line thickness other than that 1,0 px (or 1.0 px) which is already there.
I have to do some (internet)research here to solve this I am afraid.....
Analogue man in a digital world
Re: setting default line thickness
Hi.
No need, here are an "alternative solution":
From my preferences.xml file with stroke-width set to 8 - for demo only - I normally keep it at 1.
This will create lines 8 pixels wide.
If you manage to "damage" your preferences.xml file you can just delete it.
Inkscape will create a new one - with default values - if it can't find it.
In all modern (and most not so modern) OS'es the decimal separator s set to whatever is common in your area dependent on your locale setting.
What is your spreadsheet using? It should be the same as what's Inkscape uses.
Perform a google search on how to "fine-tune" the locale setting on your system.
I have to do some (internet)research here to solve this I am afraid.....
No need, here are an "alternative solution":
- • Close Inkscape (Inkscape saves the preference file on exit).
• Find your preferences.xml file in your ~/.config/inkscape/ directory
• Open the file in your preferred editor.
• Search for "pen" (Include the double apostrophes.)
• A few more lines down you will find a line starting with style=,
• In that line change the number after "stroke.width:" to whatever you desire.
• Save file. Open Inkscape. Draw a line, perform "Happydance!!!"
From my preferences.xml file with stroke-width set to 8 - for demo only - I normally keep it at 1.
This will create lines 8 pixels wide.
Code: Select all
id="pen"
mode="drag"
selcue="1"
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;filter-blend-mode:normal;filter-gaussianBlur-deviation:0;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
usecurrent="0"
shape="0"
dot-size="2"
If you manage to "damage" your preferences.xml file you can just delete it.
Inkscape will create a new one - with default values - if it can't find it.
There MUST be a possibility to change this 'smart' choice of Inkscape, but I have to figure out how to do this.
In all modern (and most not so modern) OS'es the decimal separator s set to whatever is common in your area dependent on your locale setting.
What is your spreadsheet using? It should be the same as what's Inkscape uses.
Perform a google search on how to "fine-tune" the locale setting on your system.
Last edited by ragstian on Sat Feb 28, 2015 2:32 am, edited 4 times in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
Thanks ragstian for the effort to help me out here. I do not want to be a pain in the neck
but after changing 'stroke-width' (you wrote 'line width' but you must have ment 'stroke width') to 1,2 pt
and then starting Inkscape anew, then drawing a line with the pen tool it still starts with a line width of 1,0 .
Inkscape apparently is in a 'nagging you' mode. Getting a little bit desperate here.....
I will do a test using spreadsheet to see what sort of decimal point is used there.
but after changing 'stroke-width' (you wrote 'line width' but you must have ment 'stroke width') to 1,2 pt
and then starting Inkscape anew, then drawing a line with the pen tool it still starts with a line width of 1,0 .
Inkscape apparently is in a 'nagging you' mode. Getting a little bit desperate here.....
I will do a test using spreadsheet to see what sort of decimal point is used there.
Analogue man in a digital world
Re: setting default line thickness
Hi.
Sorry about the ambiguity of line width vs stroke width.
A stroke-width of 8 in the preferences.xml will create lines 8 pixels wide when drawn on screen.
By the way - are you sure you are not using the "Draw freehand lines" tool -(F6) instead of the "Draw Bezier Curves and straight lines" tool -(Shift-F6) ?
The pen setting works for the Bezier tool - not the Freehand tool!
The tool to draw lines - and most other things - are the Bezier tool .
The setting in your default SVG document is probably "over-riding" the preferences setting.
Create a new file, use save as instead of plain save and select "plain.svg*, save filename; default.svg in your ~/.config/inkscape directory.
Saving as plain svg strips all "Inkscape" settings from the file.
I am sure we can get this to work - eventually.
Sorry about the ambiguity of line width vs stroke width.
A stroke-width of 8 in the preferences.xml will create lines 8 pixels wide when drawn on screen.
By the way - are you sure you are not using the "Draw freehand lines" tool -(F6) instead of the "Draw Bezier Curves and straight lines" tool -(Shift-F6) ?
The pen setting works for the Bezier tool - not the Freehand tool!
The tool to draw lines - and most other things - are the Bezier tool .
The setting in your default SVG document is probably "over-riding" the preferences setting.
Create a new file, use save as instead of plain save and select "plain.svg*, save filename; default.svg in your ~/.config/inkscape directory.
Saving as plain svg strips all "Inkscape" settings from the file.
I am sure we can get this to work - eventually.
Last edited by ragstian on Sat Feb 28, 2015 2:30 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: setting default line thickness
Unless I also misunderstand the problem, there should be no reason why this shouldn't work:
1 - Draw a line (stroked path) with the tool whose style (stroke width) you want to change. Each tool can be set individually.
2 - Set all the properties for the stroke (color, width, etc.)
3 - Leave the line selected, and double-click on the tool's icon (this will open Inkscape Preferences to that tool's controls)
4 - Click "This tool's own style"
5 - Click on "Take from selection"
That's all you should need to do.
Even so, the above 5 steps should re-set the preferences file (preferences.xml), as far as I understand. Here's a tutorial that I wrote, if you want to learn a few more tips and details about this: http://forum.inkscapecommunity.com/inde ... article=15
If you follow those steps and it doesn't change, try deleting the preferences.xml file. Although note that will wipe out ALL the custom preferences you have have set. First, close Inkscape. Then delete preferences.xml. Then re-open Inkscape, and a new preferences.xml file, with al the normal defaults, will be created.
For the comma vs decimal point issue, I had no idea that Inkscape would display commas at all. And actually, I had no idea that commas were ever used in any circumstace, anywhere in the world! So I don't know how to change that.
Edit
Although, if the comma usage is connected to the installed language, then maybe changing Inkscape's language will help?? Inkscape Preferences > Interface > Language
1 - Draw a line (stroked path) with the tool whose style (stroke width) you want to change. Each tool can be set individually.
2 - Set all the properties for the stroke (color, width, etc.)
3 - Leave the line selected, and double-click on the tool's icon (this will open Inkscape Preferences to that tool's controls)
4 - Click "This tool's own style"
5 - Click on "Take from selection"
That's all you should need to do.
ragstian wrote:The setting in your default SVG document is probably "over-riding" the preferences setting.
Even so, the above 5 steps should re-set the preferences file (preferences.xml), as far as I understand. Here's a tutorial that I wrote, if you want to learn a few more tips and details about this: http://forum.inkscapecommunity.com/inde ... article=15
If you follow those steps and it doesn't change, try deleting the preferences.xml file. Although note that will wipe out ALL the custom preferences you have have set. First, close Inkscape. Then delete preferences.xml. Then re-open Inkscape, and a new preferences.xml file, with al the normal defaults, will be created.
For the comma vs decimal point issue, I had no idea that Inkscape would display commas at all. And actually, I had no idea that commas were ever used in any circumstace, anywhere in the world! So I don't know how to change that.
Edit
Although, if the comma usage is connected to the installed language, then maybe changing Inkscape's language will help?? Inkscape Preferences > Interface > Language
Last edited by brynn on Mon Jan 26, 2015 10:16 pm, edited 1 time in total.
Reason: add comment about language
Reason: add comment about language
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
ragstian,
I think I have solved the problem !
I changed the stroke width in 1,2 px according to let me say 'Continental' style.
Suddenly I noticed that in the config file the "pencil" had a stroke width of "1.20000005000000010" and there was a dot used.
So I changed in the "pen" 1,2 into 1.2 and after saving and restarting Inkscape the default width was indeed 1,2 (yes with a comma!) .
And no, I did not use the 'Freehand' tool but the 'Bezier' tool.
Thank you very much for your help!
I think I have solved the problem !
I changed the stroke width in 1,2 px according to let me say 'Continental' style.
Suddenly I noticed that in the config file the "pencil" had a stroke width of "1.20000005000000010" and there was a dot used.
So I changed in the "pen" 1,2 into 1.2 and after saving and restarting Inkscape the default width was indeed 1,2 (yes with a comma!) .
And no, I did not use the 'Freehand' tool but the 'Bezier' tool.
Thank you very much for your help!
Analogue man in a digital world
Re: setting default line thickness
Apart the setting problem, why on earth to have it at exactly 1,2 pixels?
Just curious.
Just curious.
Re: setting default line thickness
Hi.
Great news.
From looking at various bug reports it seems that Inkscape has been "plagued" with the comma vs dot issue for a long time.
Might be worth filing "Another" bug report based on your experience!.
AnalogueMan wrote:ragstian,
I think I have solved the problem !
Thank you very much for your help!
Great news.
From looking at various bug reports it seems that Inkscape has been "plagued" with the comma vs dot issue for a long time.
Might be worth filing "Another" bug report based on your experience!.
Last edited by ragstian on Sat Feb 28, 2015 2:30 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
-
- Posts: 97
- Joined: Thu Jan 22, 2015 9:11 pm
- Location: Holland (the Netherlands)
Re: setting default line thickness
Lazur URH wrote:Apart the setting problem, why on earth to have it at exactly 1,2 pixels?
Just curious.
That is easy to explain:
This is the first time I am making use of Inkscape. I normally use Serif's software
' DrawPlus X6 ' for a long time now and with that drawing program I have made a lot of standard symbols (= components) which I use to draw electronic circuit diagrams. All those components have 1.2 px width which, for me was the most satisfying width. I had the possibility to export all those components to Inkscape so I did not have to draw all those components again.
One of those symbols is a 'resistor' and to connect it width the 1.0 px Inkscape default width gives
an ugly 'overlap'. That is way I wanted to change the width to exactly 1.2 px.
Here a example of a circuit diagram which I made with Inkscape:
- Attachments
-
- Circuit Diagram-II.svg
- (14.45 KiB) Downloaded 263 times
Analogue man in a digital world
Re: setting default line thickness
And also this topic turned out to be really interesting and helpful
Re: setting default line thickness
AnalogueMan wrote:Lazur URH wrote:Apart the setting problem, why on earth to have it at exactly 1,2 pixels?
Just curious.
That is easy to explain:
This is the first time I am making use of Inkscape. I normally use Serif's software
' DrawPlus X6 ' for a long time now and with that drawing program I have made a lot of standard symbols (= components) which I use to draw electronic circuit diagrams. All those components have 1.2 px width which, for me was the most satisfying width. I had the possibility to export all those components to Inkscape so I did not have to draw all those components again.
One of those symbols is a 'resistor' and to connect it width the 1.0 px Inkscape default width gives
an ugly 'overlap'. That is way I wanted to change the width to exactly 1.2 px.
Here a example of a circuit diagram which I made with Inkscape:
Looking at that sample file, the drawing can be improved.
For example to prevent stroke widths differing, group all objects together which should appear the same, and set the stroke style to the group itself.
Many fills are set, but with a 0 alpha value.
Straight lines are drawn with curved path segments. You can use the bezier tool in paraxial mode to prevent that from happening.
Or set up a grid, and simply click with the pen tool instead of click+drag.
Little do I know about the corresponding standards of circuit diagrams, but in general I would stick to a real life unit instead.
Like 0,35 mm is common in use, and close to that 1,2 px @ 90 dpi (1,24015748 px).
About the resistor, and ugly overlaps, the way they are drawn now from three parts is not the cleanest.
Could be redrawn in no time from a straight vertical path segment.