10-25-2019
Quote:
Originally Posted by
Sennenmut
Its too cumbersome..
Sorry to hear you feel that way.
I've been in tech for over 40 decades and have learned, configured, built, took apart, and programmed countless tech.
Never, once in my life, have I ever felt learning any new tech was "too cumbersome".
Every new thing we do not understand can be challenging, until we learn it, and then it is easy.
The answer you seek is in the docs; and if reading the manual to learn how to do something you want to do, is too "cumbersome" for you, then perhaps you should stop, if it pains you so much
Discussion closed.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hw to change the font color and size of output in perl (2 Replies)
Discussion started by: trupti_rinku
2 Replies
2. Shell Programming and Scripting
Could you pls tell me how to change the font colour in unix ?
What is the syntax ? (3 Replies)
Discussion started by: sars
3 Replies
3. Shell Programming and Scripting
Does anyone know how can I change font color, background color etc for a particular user using .profile? Any help is appreciated. (0 Replies)
Discussion started by: fifo_vs_lifo23
0 Replies
4. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a small requirement where i want to change the color & font of some text in a file.
i have a file error.txt which will be created in the script using egrep.
After that iam adding these lines at head & tail to that file using the following code
awk 'BEGIN{print"Please... (4 Replies)
Discussion started by: pssandeep
4 Replies
5. Shell Programming and Scripting
Hi,
I would like to change the font size in bash. I know how do it in ksh:
F_VDOBLE="\033#6"
print "${F_VDOBLE}Esto es..."
But in bash I don't know
Could you help me please?
Many thanks! (5 Replies)
Discussion started by: mierdatuti
5 Replies
6. Shell Programming and Scripting
I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx?
mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
Discussion started by: guessingo
2 Replies
7. Shell Programming and Scripting
hi,
I want to change the font of text in output file. :(
I tried the below code
code:
if awk 'BEGIN{if('$RSS'>='1000')exit 0;exit 1}'
then
RED=`echo "\033
i can see colors in terminal but not in output file :wall:
please help me how i can get colors text in output file.
edit... (1 Reply)
Discussion started by: sreelu
1 Replies
8. Programming
Does anyone know how to change the font size into a larger one, in a basic Motif application? (1 Reply)
Discussion started by: JenniferKuiper
1 Replies
9. UNIX for Dummies Questions & Answers
how do i change from employee= to employee= in ksh.
in my shell script, i just want to employee= to BOLD. (3 Replies)
Discussion started by: lawsongeek
3 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
LEARN ABOUT CENTOS
libnetpbm_draw
Libnetpbm PPM Drawing Function Manual(3) Library Functions Manual Libnetpbm PPM Drawing Function Manual(3)
Table Of Contents <#toc>
NAME
libnetpbm_draw - Libnetpbm PPM Drawing Function Manual
DESCRIPTION
This reference manual covers functions in the libnetpbm library for drawing images, using the PPM image format and the libnetpbm in-memory
image formats.
We actually have very little information here; this is mainly a framework for adding documentation later if someone becomes interested in
this facility.
The Functions
The functions are all declared in the ppmdraw.h header file.
ppmd_point_drawproc
ppmd_setlinetype
ppmd_setlineclip
ppmd_line
ppmd_spline3
ppmd_polyspline
ppmd_circle
ppmd_filledrectangle
ppmd_fill_drawproc
ppmd_fill
ppmd_text
ppmd_text_box
Fonts
The ppmd_text and ppmd_text_box functions use fonts. You control the fonts using functions described in this section. There is one font
that comes with Netpbm, called 'standard'. It is built into the function library and is the default font. You can create additional fonts
and use them instead.
In a program that uses Netpbm drawing facilities, there is a 'current font.' all drawing of text uses the current font. When the program
starts, the current font is 'standard'; you can change it after that by calling the ppmd_set_font function.
Other than a built-in font, a font lives in file in a format special to Netpbm called Ppmdfont. The file typically has a name that ends in
'.ppmdfont'.
Use the ppmddumpfont program to dump the contents of a Ppmdfont file in human readable format.
Use the ppmdmkfont program to generate the 'standard' font as a Ppmdfont file. You don't normally need to do this, because 'standard' is
built into libnetpbm.
Use the ppmdcfont program to turn a Ppmdfont file into a C source file that you can compile into a program as a built-in font. Though we
don't give full instructions here on how to do that, libnetpbm's built-in 'standard' font is a good example. In Netpbm source code, you
will find the C source file standardppmdfont.c, which was generated from the file standard.ppmdfont by ppmdcfont. You simply use a pointer
to the structure that the C file defines as a font handle, just like one you would get from ppmd_read_font.
Font File Format
The font file starts with the characters 'ppmdfont' (without the quotation marks) in ASCII.
The rest of the format is not yet documented, but it generally describes, for each code point, a sequence of straight line plotting com-
mands to form the glyph for the indicated character. I.e. it is a vector, not raster, font.
Font Control Functions
These functions are declared in the header file ppmdfont.h.
ppmd_read_font
This function associates a Ppmdfont file, which you identify by naming the Ppmdfont file, with a handle that you can use to identify the
font to other functions. Technically, this function reads the font into memory.
ppmd_free_font
This function releases the handle that you get from ppmd_read_font. It frees resources associated with it; you can't use the handle after
this.
ppmd_get_font
This function returns the handle of the currently selected font.
ppmd_set_font
This function sets the currently selected font. You identify the font to which to set it with a handle such as you get from ppmd_read_font
or ppmd_get_font.
netpbm documentation September 2005 Libnetpbm PPM Drawing Function Manual(3)