From WikiChip
mirc/commands/drawtext
< mirc‎ | commands
Revision as of 20:54, 2 December 2013 by David (talk | contribs) (Created page with "The '''/drawtext command''' draws text at the specified co-ordinates. If you use a negative number for the font size, it will match the size of fonts in the font dialog. The /...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The /drawtext command draws text at the specified co-ordinates. If you use a negative number for the font size, it will match the size of fonts in the font dialog. The /drawtext command will use some default options for anti-aliasing that you cannot change (yet), meaning that a text drawn in black may not be drawn only using the expected color, this can be a real concern when using /drawfill to fill an area with text inside it.

Synopsis

/drawtext -hnrpboc <@win> <color> [color] [fontname fontsize] <x y [w h]> <text>

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 - means the specified font should be in bold
  • -c - means 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

Parameters

  • <@win> - the window's name
  • <color> - the foreground color
  • [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> - the text to be drawn

Example

drawtext -rn @mygame 0 verdana 20 30 30 the fps is: 60

Compatibility

Added: 5.3

Added On: 13/12/97

Note: Individual switches were not taken into consideration.

See also