.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "GTK4-PATH-TOOL" "" "" "" .SH NAME gtk4-path-tool \- GskPath Utility .SH SYNOPSIS .nf \fBgtk4\-path\-tool\fP [OPTIONS...] \fBgtk4\-path\-tool\fP decompose [OPTIONS...] \fBgtk4\-path\-tool\fP show [OPTIONS...] \fBgtk4\-path\-tool\fP render [OPTIONS...] \fBgtk4\-path\-tool\fP reverse [OPTIONS...] \fBgtk4\-path\-tool\fP info [OPTIONS...] .fi .sp .SH DESCRIPTION .sp \fBgtk4\-path\-tool\fP can perform various tasks on paths. Paths are specified in SVG syntax, as strings like \(dqM 100 100 C 100 200 200 200 200 100 Z\(dq. .sp To read a path from a file, use a filename that starts with a \(aq.\(aq or a \(aq/\(aq. To read a path from stdin, use \(aq\-\(aq. .SH COMMANDS .SS Decomposing .sp The \fBdecompose\fP command approximates the path by one with simpler elements. When used without options, the curves of the path are approximated by line segments. .sp \fB\-\-allow\-quad\fP .INDENT 0.0 .INDENT 3.5 Allow quadratic Bézier curves to be used in the generated path. .UNINDENT .UNINDENT .sp \fB\-\-allow\-cubic\fP .INDENT 0.0 .INDENT 3.5 Allow cubic Bézier curves to be used in the generated path. .UNINDENT .UNINDENT .sp \fB\-\-allow\-conic\fP .INDENT 0.0 .INDENT 3.5 Allow conic Bézier curves to be used in the generated path. .UNINDENT .UNINDENT .SS Showing .sp The \fBshow\fP command displays the given path in a window. The interior of the path is filled. .sp \fB\-\-fill\fP .INDENT 0.0 .INDENT 3.5 Fill the path (this is the default). .UNINDENT .UNINDENT .sp \fB\-\-stroke\fP .INDENT 0.0 .INDENT 3.5 Stroke the path instead of filling it. .UNINDENT .UNINDENT .sp \fB\-\-points\fP .INDENT 0.0 .INDENT 3.5 Show points on the path. .UNINDENT .UNINDENT .sp \fB\-\-controls\fP .INDENT 0.0 .INDENT 3.5 Show control points. .UNINDENT .UNINDENT .sp \fB\-\-fill\-rule=VALUE\fP .INDENT 0.0 .INDENT 3.5 The fill rule that is used to determine what areas are inside the path. The possible values are \fBwinding\fP or \fBeven\-odd\fP\&. The default is \fBwinding\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-fg\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to fill the interior of the path or stroke the path. If not specified, black is used. .UNINDENT .UNINDENT .sp \fB\-\-bg\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to render the background behind the path. If not specified, white is used. .UNINDENT .UNINDENT .sp \fB\-\-point\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to render the points. If not specified, red is used. .UNINDENT .UNINDENT .sp \fB\-\-line\-width=VALUE\fP .INDENT 0.0 .INDENT 3.5 The line width to use for the stroke. \fBVALUE\fP must be a positive number. The default line width is 1. .UNINDENT .UNINDENT .sp \fB\-\-line\-cap=VALUE\fP .INDENT 0.0 .INDENT 3.5 The cap style to use at line ends. The possible values are \fBbutt\fP, \fBround\fP or \fBsquare\fP\&. See the SVG specification for details on these styles. The default cap style is \fBbutt\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-line\-join=VALUE\fP .INDENT 0.0 .INDENT 3.5 The join style to use at line joins. The possible values are \fBmiter\fP, \fBmiter\-clip\fP, \fBround\fP, \fBbevel\fP or \fBarcs\fP\&. See the SVG specification for details on these styles. The default join style is \fBmiter\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-miter\-limit=VALUE\fP .INDENT 0.0 .INDENT 3.5 The limit at which to clip miters at line joins. The default value is 4. .UNINDENT .UNINDENT .sp \fB\-\-dashes=VALUE\fP .INDENT 0.0 .INDENT 3.5 The dash pattern to use for this stroke. A dash pattern is specified by a comma\-separated list of alternating non\-negative numbers. Each number provides the length of alternate \(dqon\(dq and \(dqoff\(dq portions of the stroke. If the dash pattern is empty, dashing is disabled, which is the default. See the SVG specification for details on dashing. .UNINDENT .UNINDENT .sp \fB\-\-dash\-offset=VALUE\fP .INDENT 0.0 .INDENT 3.5 The offset into the dash pattern where dashing should begin. The default value is 0. .UNINDENT .UNINDENT .SS Rendering .sp The \fBrender\fP command renders the given path as a PNG image. The interior of the path is filled. .sp \fB\-\-fill\fP .INDENT 0.0 .INDENT 3.5 Fill the path (this is the default). .UNINDENT .UNINDENT .sp \fB\-\-stroke\fP .INDENT 0.0 .INDENT 3.5 Stroke the path instead of filling it. .UNINDENT .UNINDENT .sp \fB\-\-points\fP .INDENT 0.0 .INDENT 3.5 Show points on the path. .UNINDENT .UNINDENT .sp \fB\-\-controls\fP .INDENT 0.0 .INDENT 3.5 Show control points. .UNINDENT .UNINDENT .sp \fB\-\-fill\-rule=VALUE\fP .INDENT 0.0 .INDENT 3.5 The fill rule that is used to determine what areas are inside the path. The possible values are \fBwinding\fP or \fBeven\-odd\fP\&. The default is \fBwinding\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-fg\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to fill the interior of the path or stroke the path. If not specified, black is used. .UNINDENT .UNINDENT .sp \fB\-\-bg\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to render the background behind the path. If not specified, white is used. .UNINDENT .UNINDENT .sp \fB\-\-point\-color=COLOR\fP .INDENT 0.0 .INDENT 3.5 The color that is used to render the points. If not specified, red is used. .UNINDENT .UNINDENT .sp \fB\-\-output\-file=FILE\fP .INDENT 0.0 .INDENT 3.5 The file to save the PNG image to. If not specified, \(dqpath.png\(dq is used. .UNINDENT .UNINDENT .sp \fB\-\-line\-width=VALUE\fP .INDENT 0.0 .INDENT 3.5 The line width to use for the stroke. \fBVALUE\fP must be a positive number. The default line width is 1. .UNINDENT .UNINDENT .sp \fB\-\-line\-cap=VALUE\fP .INDENT 0.0 .INDENT 3.5 The cap style to use at line ends. The possible values are \fBbutt\fP, \fBround\fP or \fBsquare\fP\&. See the SVG specification for details on these styles. The default cap style is \fBbutt\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-line\-join=VALUE\fP .INDENT 0.0 .INDENT 3.5 The join style to use at line joins. The possible values are \fBmiter\fP, \fBmiter\-clip\fP, \fBround\fP, \fBbevel\fP or \fBarcs\fP\&. See the SVG specification for details on these styles. The default join style is \fBmiter\fP\&. .UNINDENT .UNINDENT .sp \fB\-\-miter\-limit=VALUE\fP .INDENT 0.0 .INDENT 3.5 The limit at which to clip miters at line joins. The default value is 4. .UNINDENT .UNINDENT .sp \fB\-\-dashes=VALUE\fP .INDENT 0.0 .INDENT 3.5 The dash pattern to use for this stroke. A dash pattern is specified by a comma\-separated list of alternating non\-negative numbers. Each number provides the length of alternate \(dqon\(dq and \(dqoff\(dq portions of the stroke. If the dash pattern is empty, dashing is disabled, which is the default. See the SVG specification for details on dashing. .UNINDENT .UNINDENT .sp \fB\-\-dash\-offset=VALUE\fP .INDENT 0.0 .INDENT 3.5 The offset into the dash pattern where dashing should begin. The default value is 0. .UNINDENT .UNINDENT .SS Reversing .sp The \fBreverse\fP command changes the direction of the path. The resulting paths starts where the original path ends. .SS Info .sp The \fBinfo\fP command shows various information about the given path, such as its bounding box. .SH REFERENCES .INDENT 0.0 .IP \(bu 2 SVG Path Specification, .UNINDENT .\" Generated by docutils manpage writer. .