ppmlabel(1) | General Commands Manual | ppmlabel(1) |
ppmlabel - add text to a portable pixmap
ppmlabel [-angle angle]
[-background transparent | colour] [-colour
colour] [-file filename] [-size textsize]
[-text 'text string'] [-x column]
[-y row] ... [ppmfile]
ppmlabel uses the text drawing facilities of ppmdraw to add text to a portable pixmap. The location, size, baseline angle, colour of the text and background colour (if any) are controlled by command line arguments. The text can be specified on the command line or read from files. Any number of separate text strings can be added by one invocation of ppmlabel, limited only by the maximum length of the command line.
If no ppmfile is specified, ppmdraw reads its input pixmap from standard input.
The arguments on the ppmlabel command line are not options in the strict sense; they are commands which control the placement and appearance of the text being added to the input pixmap. They are executed left to right, and any number of arguments may appear.
All flags can be abbreviated to their shortest unique prefix.
Text strings are restricted to 7 bit ASCII. The text font used by ppmdraw doesn't include definitions for 8 bit ISO 8859/1 characters.
When drawing multiple lines of text with a non-transparent background, it should probably fill the space between the lines with the background colour. This is tricky to get right when the text is rotated to a non-orthogonal angle.
The -size, -x, and -y options MUST precede the -text option specifying the string they apply to, or they will be silently ignored in favor of the defaults.
Copyright (C) 1995 by John Walker (kelvin@fourmilab.ch)
WWW home page: http://www.fourmilab.ch/
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. This software is provided ``as is'' without express or implied warranty.
14 June 1995 |