Project

General

Profile

Actions

Drawtext » History » Revision 6

« Previous | Revision 6/8 (diff) | Next »
Per Amundsen, 11/06/2020 06:57 PM


Added in 1.9.0

/drawtext -hnrpbocvd <@window> <color> [color] [fontname fontsize] <x y [w h]> <text|&binvar>

Draws text at the specified co-ordinates.

Switches

-p - Processes and interprets control codes in the text.
-b - Indicates that you have specified the second color parameter as the background color for the text.
-o - Indicates specified font should be in bold.
-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.
-h - Highlights the windows icon if it is minimized.
-n - Prevents the display from being updated immediately.
-r - Indicates that the colors are in $rgb format.
-v - Indicates &binvar is specified.
-d - TODO

Parameters

<@window> - Name of the window to draw.
<color> - The textcolor.
[color] - The background color, if -b has been specified.
[fontname fontsize] - The name of the font and the size of the font.
<x y [w h]> - The coordinate of the text.
<text|&binvar> - The text or text from a &binvar to draw.

Example

alias testdrawtext {
  window -p @win
  drawtext @win 4 Verdana 11 0 0 Hello World
}

Updated by Per Amundsen over 3 years ago · 6 revisions

Also available in: PDF HTML TXT