Thanks for the reply. You just motivated me to try again.
I accidentally just pasted a chunk of text in emacs and noticed it is the place where the newline arrows are displayed. I looked it up and it is called 'The Fringe'. This is one of the things I tried without success. I should have posted my incorrect code on my first post.
I usually use emacs in xterm. This option is not needed there.
I have been teaching myself unix a little here and a little there. I would like to learn emacs, or an editor that I would get the most use out of. What is the most used editor in unix? (1 Reply)
Hi
How can I do ftp using emacs. I strart the function by M-x ftp. It connects to the server where I can see the list of files. how can I do put or get there?
Thanks
SS (1 Reply)
Hi guys
What is the difference between Xemacs and emacs. I assumed Xemacs runs only in X11.
What about in Linux on KDE? Am I running Xemacs or emacs. Well it says emacs though.
What is the advantage of one over other?
What can I run on OS X ?
SS (5 Replies)
could someone please tell me how do I work emacs on unix?? how do you input the command and open up files and edit stuff. I know M-x info will lauch the info viewer, C-x u is undo, M-x spell-region run a spell check but when i use some of these command on emacs in Unix, I'm getting no results or... (1 Reply)
I'm trying to compile two files in Emacs (guess.cpp and yesno.cpp). So I open up Emacs (the text version) and give the command M-x and then I try to type in "g++ -o asst guess.cpp yesno.cpp". But everytime after I type "g++" and try to do a space after that, it says and wont let me type a space?
... (1 Reply)
Hi,
I have Aix 6.1.
Installed the Ricoh Unix print filter, to allow us to print to a Ricoh 5001.
So I send text documents to the printer using the qprt command and set the print job finishing options using the Ricoh commands passed using -o options.
Eg. qprt -Pfin200 -o collate=on -o text... (7 Replies)
Hi All,
I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way..
How to use emacs editor? Also how to open existing emacs files with .cgi format?
I have the following link :-
http link i.e. url and path : /abc/xyz.dev/xyz/documents
What... (7 Replies)
Hi Everybody! First post! Totally noobie.
I'm using the terminal to read a poorly formatted book.
The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this.
I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies
LEARN ABOUT REDHAT
pbmtext
pbmtext(1) General Commands Manual pbmtext(1)NAME
pbmtext - render text into a bitmap
SYNOPSIS
pbmtext [-font fontfile] [-builtin fontname] [-space 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 specify-
ing -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 pos-
sible 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.
SEE ALSO pnmcut(1), pnmcrop(1), pnmcomp(1), ppmchange(1), pnmrotate(1), ppmlabel(1), pbm(5)AUTHOR
Copyright (C) 1993 by Jef Poskanzer and George Phillips
28 January 2001 pbmtext(1)