Debian Codegraph @

doc/sphinx/ui/dialogs/tilepath.rst

raw
1 Tile Path
2 =========
3
4 The Tile Path command may be used to apply a repetitive decoration to a font.
5 You invoke the command on a glyph (or set of glyphs), then design your tile(s).
6 All selected paths in the glyph will be replaced by the tile fit to the curve.
7
8 Consider the following:
9
10 .. flex-grid::
11
12 * - .. figure:: /images/tilepath-selection.png
13
14 The tile
15 - .. figure:: /images/tilepath-orig.png
16
17 Two paths to be tiled.
18 - .. figure:: /images/tilepath-final.png
19
20 The result.
21
22 The tile has been replicated (and warped) to follow the original contours.
23
24 .. figure:: /images/TilePath.png
25
26 As you can see above there are several different tiles you can specify. You must
27 specify the tile called Medial; you may specify the other three. There meanings
28 are:
29
30 * If you have an open contour and a single tile will cover it, then the "Isolated"
31 tile will be used
32 * Otherwise, if you have an open contour, then the first tile laid down will be
33 the "First" tile, the last tile laid will be the "Final" tile, and any
34 intermediate tiles will be the medial tiles.
35 * Closed contours will always be covered by "Medial" tiles.
36
37 The reasoning behind this is that you may want special edge effects. In the
38 example above it would be nice if the ends of open contours were automatically
39 closed, so the first and final tiles might look just like the medial tile except
40 with their respective edges closed, while the isolated tile would have both
41 edges closed.
42
43 .. figure:: /images/TilePath2.png
44
45 The Tile Path dialog gives you several choices to control how the tile is
46 placed. The tile can be either centered on the path, or be tangent to the left
47 edge of the path (for a clockwise path, the left edge is outside the path), or
48 be tangent to the right edge (for a clockwise path the right edge is inside the
49 path).
50
51 .. flex-grid::
52
53 * - .. figure:: /images/tilepath-left.png
54
55 left (outside)
56 - .. figure:: /images/tilepath-center.png
57
58 center
59 - .. figure:: /images/tilepath-right.png
60
61 right (inside)
62
63 You can also chose whether you want the tile to be tiled without scaling (in
64 which case you will probably be left with a fraction of the tile at one end),
65 tiled with scaling (the tile will be scaled so that it fits on the path an
66 integral number of times), or simply scaled (in which case there will be exactly
67 one tile and it will be scaled to be as long as the path.
68
69 .. flex-grid::
70
71 * - .. figure:: /images/tilepath-tile.png
72
73 tile
74 - .. figure:: /images/tilepath-ts.png
75
76 tile & scale
77 - .. figure:: /images/tilepath-scale.png
78
79 scale
80
81 --------------------------------------------------------------------------------
82
83
84 .. _tilepath.Pattern:
85
86 Tile Pattern
87 ------------
88
89 .. image:: /images/TilePattern.png
90 :align: right
91
92 The Tile Pattern dialog allows you to design a pattern which will be tiled (both
93 horizontally and vertically across the current layer.
94
95 You design the pattern in the edit pane of the dialog, and specify, the size of
96 the tile using the width and height fields -- note that the size may be larger
97 than the pattern's bounding box if you want white space around the tile (the
98 green lines show the bounds of the tile). You also specify how many times the
99 pattern is to be repeated in the x and y directions.
100
101 The tiling will start at the origin. After the pattern has been tiled you may
102 apply other transformations to distort it into a non-rectangular shape, or use
103 the :menuselection:`Element --> Overlap --> Intersect` command to clip it to
104 some contour. Thus you can simulate some of the capabilities of a true pattern
105 tile as is available in a type3 font.