Project

General

Profile

Drawtext » History » Version 6

Per Amundsen, 11/06/2020 06:57 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 6 Per Amundsen
*/drawtext -hnrpbocvd <@window> <color> [color] [fontname fontsize] <x y [w h]> <text|&binvar>*
4 1 Per Amundsen
5
Draws text at the specified co-ordinates.
6
7
*Switches*
8
9
-p - Processes and interprets control codes in the text.
10
-b - Indicates that you have specified the second color parameter as the background color for the text.
11
-o - Indicates specified font should be in bold.
12
-c - Indicates that you have specified the [w h] values as the rectangle in which text should be printed. Text will be clipped if it extends beyond this rectangle.
13
-h - Highlights the windows icon if it is minimized.
14
-n - Prevents the display from being updated immediately.
15
-r - Indicates that the colors are in [[$rgb]] format.
16
-v - Indicates &binvar is specified.
17 6 Per Amundsen
-d - TODO
18 2 Per Amundsen
19
*Parameters*
20
21
<@window> - Name of the window to draw.
22
<color> - The textcolor.
23
[color] - The background color, if -b has been specified.
24 1 Per Amundsen
[fontname fontsize] - The name of the font and the size of the font.
25
<x y [w h]> - The coordinate of the text.
26 5 Per Amundsen
<text|&binvar> - The text or text from a &binvar to draw.
27
28
*Example*
29
30
<pre>
31
alias testdrawtext {
32
  window -p @win
33
  drawtext @win 4 Verdana 11 0 0 Hello World
34
}
35
</pre>