Close symbol paths where appropriate
Removes some ugliness in PDF exports, stemming from line thickness.
This commit is contained in:
parent
deceafb4f4
commit
7499f92811
@ -23,6 +23,7 @@ local render = function (cr)
|
||||
cr:curve_to (3, 0, 2, 2, 0, 2)
|
||||
cr:line_to (-2, 2)
|
||||
cr:curve_to (-1, 1, -1, -1, -2, -2)
|
||||
cr:close_path ()
|
||||
cr:stroke ()
|
||||
|
||||
-- The terminals
|
||||
|
@ -21,8 +21,7 @@ local render = function (cr)
|
||||
cr:line_to (-1, 0)
|
||||
|
||||
-- The terminals
|
||||
cr:move_to (-2, 0)
|
||||
cr:line_to (-1, 0)
|
||||
cr:line_to (-2, 0)
|
||||
|
||||
cr:move_to (1, 0)
|
||||
cr:line_to (2, 0)
|
||||
|
@ -48,7 +48,7 @@ local render = function (cr)
|
||||
cr:move_to (-1, -1)
|
||||
cr:line_to (1, 0)
|
||||
cr:line_to (-1, 1)
|
||||
cr:line_to (-1, -1)
|
||||
cr:close_path ()
|
||||
|
||||
-- The vertical line
|
||||
cr:move_to (1, 1)
|
||||
|
@ -42,7 +42,7 @@ local render = function (cr)
|
||||
cr:line_to (1.5, -0.5)
|
||||
cr:line_to (1.5, 0.5)
|
||||
cr:line_to (-1.5, 0.5)
|
||||
cr:line_to (-1.5, -0.5)
|
||||
cr:close_path ()
|
||||
|
||||
-- The terminals
|
||||
cr:move_to (-2, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user