stathissideris / ditaa

ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
GNU Lesser General Public License v3.0
924 stars 87 forks source link

never fill dashed paths (neither closed nor unclosed) in SVG #65

Closed Flupp closed 3 years ago

Flupp commented 3 years ago

Never filling dashed paths is consistent with PNG output.

Also, this fixes erroneous filling of unclosed dashed paths. Without this fix, such fillings can overlap other parts of the graphics, which are then partially invisible. Sometimes only shadows are affected. For example:

/======
:       :
:+----+ :
:|cABC| :
 +----+ :
        :
 =======/

In this example, the top left corner of the box is cut-off by the (white) filling of the top left dashed path. Additionally, the lower right corner of the shadow of the box is cut-off by the (white) filling of the lower right dashed path.