aboutsummaryrefslogtreecommitdiff
path: root/help/eng/format.rst
blob: 087e538c0d92a83c74f205ea315bec74c27263e7 (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
.. _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** - Change position
^^^^^^^^^^^^^^^^^^^^^^^

Changes current position to parameter coordinates.

Parameters: X,Y (``U10,10``)

**D** - Draw line
^^^^^^^^^^^^^^^^^

Draws line from previous position to parameter coordinates.

Parameters: X,Y (``U20,20``)

**R** - Draw circle
^^^^^^^^^^^^^^^^^^^

Draws parameter radius circle using previous position as center.

Parameters: R (``R30``)

**B** - Draw rectangle
^^^^^^^^^^^^^^^^^^^^^^

Draws rectangle using previous position and parameter coordinates as corners.

Parameters: X,Y (``B40,40``)

**C** - Color index
^^^^^^^^^^^^^^^^^^^

Sets parameter to current drawing color index. Affects until changed.

Parameters: I (``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: I (``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: I (``G50``)

**J** - Text alignment
^^^^^^^^^^^^^^^^^^^^^^

Sets parameter to text alignment (1-12). Default is 9 (bottom left corner). Affects until changed.

Parameters: I (``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: S (``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: P (``P50``)