aboutsummaryrefslogtreecommitdiff
path: root/help/eng/format.rst
blob: 8e43a66882fc7b9cb380326421a6308069be23e8 (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
.. _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** - Set color index
^^^^^^^^^^^^^^^^^^^^^^^

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

Parameters: I (``C3``)

**F** - Set 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** - Set 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** - Set text alignment
^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Parameters: I (``J9``)