Linux Commands Examples

A great documentation place for Linux commands


render text into a bitmap via postscript

see also : pbmtext - pnmcut - pnmcrop - pnmcomp - ppmchange - pnmrotate - ppmlabel


pbmtextps [-font fontfile] [-fontsize fontsize] [-resolution resolution] [-stroke strokesize] [-verbose [text]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


pbmtextps takes a single line of text from the command line and renders it into a PBM image.

The image is cropped at the top and the right. It is not cropped at the left or bottom so that the text begins at the same position relative to the origin. You can use pnmcrop to crop it all the way.



By default, pbmtextps uses TimesRoman. You can specify the font to use with the -font option. This is the name of any valid postscript font which is installed on your system.


Size of font in points. See the -resolution option for information on how to interpret this size.

Default is 24 points.


Resolution in dots per inch of distance measurements pertaining to generation of the image. PBM images don’t have any inherent resolution, so a distance such as "1 inch" doesn’t mean anything unless you separately specify what resolution you’re talking about. That’s what this option does.

In particular, the meaning of the font size is determined by this resolution. If the font size is 24 points and the resolution is 150 dpi, then the font size is 50 pixels.

Default is 150 dpi.


Width of line to use for stroke font. There is no default stroke width because the letters are solid by default.


See pbmtext for usage examples.

see also

pbmtext , pnmcut , pnmcrop , pnmcomp , ppmchange , pnmrotate , ppmlabel , pbm


Copyright (C) 2002 by James McCann

How can this site be more helpful to YOU ?

give  feedback