Copyright (C) 2000-2012 |
Manpages pbmtextSection: User Commands (1)Updated: 28 January 2001 Index Return to Main Contents NAMEpbmtext - render text into a bitmapSYNOPSISpbmtext [-font fontfile] [-builtin fontname] [-space pixels] [text]DESCRIPTIONTakes the specified text, either a single line from the command line or multiple lines from standard input, and renders it into a bitmap. In the bitmap, each line of input is a line of output. Formatting characters such as newline have no effect on the formatting; like any unprintable character, they turn into spaces. The bitmap is just wide enough for the longest line of text, plus margins, and just high enough to contain the lines of text, plus margins. The left and right margins are twice the width of the widest character in the font; the top and bottom margins are the height of the tallest character in the font. But if the text is only one line, all the margins are half of this. OPTIONS
USAGEOften, you want to place text over another image. One way to do this is with ppmlabel. ppmlabel does not give you the font options that pbmtext does, though. Another way is to use pbmtext to create an image containing the text, then use pnmcomp to overlay the text image onto your base image. To make only the text (and not the entire rectangle containing it) cover the base image, you will need to give pnmcomp a mask, via its -alpha option. You can just use the text image itself as the mask, as long as you also specify the -invert option to pnmcomp. If you want to overlay colored text instead of black, just use ppmchange to change all black pixels to the color of your choice before overlaying the text image. But still use the original black and white image for the alpha mask. If you want the text at an angle, use pnmrotate on the text image (and alpha mask) before overlaying. SEE ALSOpnmcut(1), pnmcrop(1), pnmcomp(1), ppmchange(1), pnmrotate(1), ppmlabel(1), pbm(5)AUTHORCopyright (C) 1993 by Jef Poskanzer and George Phillips
IndexThis document was created by man2html, using the manual pages. Time: 23:10:34 GMT, November 13, 2024 |