EnglishFrenchSpanish

OnWorks favicon

pbmtext - Online in the Cloud

Run pbmtext in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pbmtext that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pbmtext - render text into a bitmap

SYNOPSIS


pbmtext [-font fontfile] [-builtin fontname] [-space pixels] [-lspace pixels] [text]

DESCRIPTION


Takes 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


-font,-builtin
By default, pbmtext uses a built-in font called bdf (about a 10 point Times-Roman
font). You can use a fixed width font by specifying -builtin fixed.

You can also specify your own font with the -font flag. The fontfile is either a
BDF file from the X window system or a PBM file.

If the fontfile is a PBM file, it is created in a very specific way. In your
window system of choice, display the following text in the desired (fixed-width)
font:

M ",/^_[`jpqy| M

/ !"#$%&'()*+ /
< ,-./01234567 <
> 89:;<=>?@ABC >
@ DEFGHIJKLMNO @
_ PQRSTUVWXYZ[ _
{ \]^_`abcdefg {
} hijklmnopqrs }
~ tuvwxyz{|}~ ~

M ",/^_[`jpqy| M

Do a screen grab or window dump of that text, using for instance xwd, xgrabsc, or
screendump. Convert the result into a pbm file. If necessary, use pnmcut to
remove everything except the text. Finally, run it through pnmcrop to make sure
the edges are right up against the text. pbmtext can figure out the sizes and
spacings from that.

-space pixels
Add pixels pixels of space between characters. This is in addition to whatever
space surrounding characters is built into the font, which is usually enough to
produce a reasonable string of text.

pixels may be negative to crowd text together, but the author has not put much
thought or testing into how this works in every possible case, so it might cause
disastrous results.

-B -lspace pixels
Add pixels pixels of space between lines. This is in addition to whatever space
above and below characters is built into the font, which is usually enough to
produce a reasonable line spacing.

pixels must be a whole number.

pixels may be negative to crowd lines together, but the author has not put much
thought or testing into how this works in every possible case, so it might cause
disastrous results.

USAGE


Often, 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.

Use pbmtext online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 2
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 3
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 4
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • 5
    Sky Chart / Cartes du Ciel
    Sky Chart / Cartes du Ciel
    SkyChart is a software to draw chart of
    the night sky for the amateur astronomer
    from a bunch of stars and nebulae
    catalogs. See main web page for full
    download...
    Download Sky Chart / Cartes du Ciel
  • 6
    GSmartControl
    GSmartControl
    GSmartControl is a graphical user
    interface for smartctl. It allows you to
    inspect the hard disk and solid-state
    drive SMART data to determine its
    health, as w...
    Download GSmartControl
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqmktop
    coqmktop
    coqmktop - The Coq Proof Assistant
    user-tactics linker ...
    Run coqmktop
  • 4
    coqtop
    coqtop
    coqtop - The Coq Proof Assistant
    toplevel system ...
    Run coqtop
  • 5
    g.copygrass
    g.copygrass
    g.copy - Copies available data files in
    the current mapset search path to the
    user�s current mapset. KEYWORDS:
    general, map management ...
    Run g.copygrass
  • 6
    g.dirsepsgrass
    g.dirsepsgrass
    g.dirseps - Internal GRASS utility for
    converting directory separator
    characters. Converts any directory
    separator characters in the input string
    to or from na...
    Run g.dirsepsgrass
  • More »

Ad