blob: 8b7bad0083c2a57e775fca8a30077b1a8b8ca528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
.. _symbol-format-label:
Symbol format
=============
Format contains drawing commands separated by semicolons. Symbol coordinate area is 100x100 and origin is at center. Coordinate X component is horizontal from left to right and Y component is vertical from bottom to top. Angle zero direction points to right and rotation is counter-clockwise.
For example, application crosshair logo can be defined like this:
``R50;U-50,0;D50,0;U0,50;D0,-50``
Commands
--------
Following drawing commads are available.
**U** - Position
^^^^^^^^^^^^^^^^
Changes current position to parameter coordinates.
Parameters: position x,y (``U10,10``)
**D** - Line
^^^^^^^^^^^^
Draws line from previous position to parameter coordinates.
Parameters: position x,y (``U20,20``)
**R** - Circle
^^^^^^^^^^^^^^
Draws parameter radius circle using previous position as center.
Parameters: radius (``R30``)
**B** - Rectangle
^^^^^^^^^^^^^^^^^
Draws rectangle using previous position and parameter coordinates as corners.
Parameters: positin x,y (``B40,40``)
**C** - Color index
^^^^^^^^^^^^^^^^^^^
Sets parameter to current drawing color index. Affects until changed.
Parameters: color index (``C3``)
**F** - Area fill type
^^^^^^^^^^^^^^^^^^^^^^
Sets area fill type index to one of the following values:
0. No fill
1. Area fill using background color
2. Area fill using current color
Fill type works with rectangle and circle commands. Border is drawn only when the fill type is zero. Affects until changed.
Parameters: fill type (``F2``)
**G** - Text angle
^^^^^^^^^^^^^^^^^^
Sets parameter to text angle as gons. Horizontal text angle is zero and rotation is counter-clockwise. Affects until changed.
Parameters: angle (``G50``)
**J** - Text alignment
^^^^^^^^^^^^^^^^^^^^^^
Sets parameter to text alignment (1-12). Default is 9 (bottom left corner). Affects until changed.
1. Top right (``J1``)
2. Top center (``J2``)
3. Top left (``J3``)
4. Base right (``J4``)
5. Base center (``J5``)
6. Base left (``J6``)
7. Bottom right (``J7``)
8. Bottom center (``J8``)
9. Bottom left (``J9``)
10. Middle right (``J10``)
11. Middle center (``J11``)
12. Middle left (``J12``)
.. image:: ../image/alignment.png
Parameters: alignment (``J9``)
**S** - Text absolute size
^^^^^^^^^^^^^^^^^^^^^^^^^^
Sets parameter to text size as millimeters (positive) or meters (negative). Default zero uses application settings. Affects until changed.
Parameters: size (``S2.5``)
**P** - Text relative size
^^^^^^^^^^^^^^^^^^^^^^^^^^
Sets parameter to text size as a percentage of symbol size. Default zero uses application settings. Affects until changed.
Parameters: percentage (``P50``)
|