Strokes thickness that extends only outward.

Bug #172214 reported by Bug Importer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Non-zero Stroke thicknesses currently cause the stroke to extend out from
the edge of the fill of an object, as well as in towards the fill of the
object. So if you have a shape with a fill color set, and a
semi-transparent Stroke Color, the half of the stoke width that extends
into the shape takes on color from the fill. This gives the illusion of 2
strokes.

So currently, there is no reasonable way that I can find to create a shape
with a semi-transparent thick border without looking like 2 overlapping
shapes.

One solution may be to have the option to have the stroke extend only
outward, instead of into the shape fill area as well.

Another solution would be to have the option for the stroke to clip the
fill as it extends inward.

To implement both these solutions would be amazing, since it would also
solve the problem of shape width and height changing when stroke thickenss
is changed. With "Strokes extend inward" set you could change the thickness
of the stroke without affecting the size of the shape.

The options could be:

"Stroke extends inward"

"Stroke extends outward"

"Stroke extends inward and outward" (the current default)

Then (only if "Stroke extends outward" is not set) could present a checkbox
for wether the fill area should be clipped by the stroke. This stuff
combined would be huge.

Attached is a gray circle with a semi-transparent green border with a
thickness of 15px. You can see it appears to be double stroked.

Revision history for this message
Bug Importer (bug-importer) wrote :
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

This placement of stroke is what is prescribed in SVG standard. We cannot
change that. You can only simulate this with clipping and/or outsetting.

Revision history for this message
Marcel Partap (empee584) wrote :

Buliabyak-users: just wanted to report this as i am drawing an icon 24x18 with a 1px snap grid... wanted to have a 1px line around the icon, but as the stroke is drawn centered on the edge, i have to set the width to 2px and mask the outer part by another rectangle.. is there really no way around this? Did the SVG standards people really miss this? ^ #

Revision history for this message
JiHO (jiho) wrote : Re: [Bug 172214] Re: Strokes thickness that extends only outward.

On 2008-August-16 , at 08:13 , Marcel Partap wrote:
> Buliabyak-users: just wanted to report this as i am drawing an icon
> 24x18 with a 1px snap grid... wanted to have a 1px line around the
> icon,
> but as the stroke is drawn centered on the edge, i have to set the
> width
> to 2px and mask the outer part by another rectangle.. is there
> really no
> way around this?

people work around that by drawing icons on a 0.5 pixel grid.

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.