9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Discussion started by: cplusplus1
4 Replies
2. UNIX for Advanced & Expert Users
i have 2 installation on VirtualBox : centos & debian
the fonts look nice on debian.
i have provided 2 screenshots in the attachments.
please advise me how to achieve same in centos.
thanks. (4 Replies)
Discussion started by: coolatt
4 Replies
3. Shell Programming and Scripting
cat file.txt
file 1123.x July 23:222 /cd/hh2/k39/ss2/f7d8d9d8e6r5t4s/dd2/e/s7a/s7a2afa5017d8b975-1.7-1395610245-b22e19bbc477b134
i wish to only extract out the 1.7 (anything within the first - -)
i try to look for the sed command under match the first occurence of pattern but out of luck, my... (6 Replies)
Discussion started by: ctphua
6 Replies
4. UNIX for Advanced & Expert Users
I want to differentiate the STDOUT and STDERR messages in my terminal .
If a script or command is printing a message in terminal I want to differentiate by colors,
Is it possible ?
Example:
$date
Wed Jul 27 12:36:50 IST 2011
$datee
bash: datee: command not found
$alias ls
alias... (2 Replies)
Discussion started by: ungalnanban
2 Replies
5. UNIX for Advanced & Expert Users
I thought I would point this out. This has a lot of the non printing characters.
ASCII Character Set (7 Replies)
Discussion started by: cokedude
7 Replies
6. Solaris
deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies
7. Shell Programming and Scripting
Hi,
below is an example of dialog script from the net, I would like to run
from a command line in putty terminal opened session.
The issue is some characters get replaced by dots.
Could you advise me a solution to edit the following string into
window character set accepted by putty ?
I... (2 Replies)
Discussion started by: jack2
2 Replies
8. UNIX for Dummies Questions & Answers
can any one tell me how to set the font size in unix? (14 Replies)
Discussion started by: sachin.gangadha
14 Replies
9. Solaris
I want one help from you.I got one printer related task in which when user is printing some doc , Font size is big.
He want to reduce the size.we are using SUN SOLARIS (Text Based - NON GUI) operation system.
Can you tell me , what could be the reason and how to check default font size and style... (0 Replies)
Discussion started by: ahuja_kishor
0 Replies
PS_FINDFONT(3) 1 PS_FINDFONT(3)
ps_findfont - Loads a font
SYNOPSIS
int ps_findfont (resource $psdoc, string $fontname, string $encoding, [bool $embed = false])
DESCRIPTION
Loads a font for later use. Before text is output with a loaded font it must be set with ps_setfont(3). This function needs the adobe font
metric file in order to calculate the space used up by the characters. A font which is loaded within a page will only be available on that
page. Fonts which are to be used in the complete document have to be loaded before the first call of ps_begin_page(3). Calling ps_find-
font(3) between pages will make that font available for all following pages.
The name of the afm file must be $fontname .afm. If the font shall be embedded the file $fontname .pfb containing the font outline must be
present as well.
Calling ps_findfont(3) before the first page requires to output the postscript header which includes the BoundingBox for the whole docu-
ment. Usually the BoundingBox is set with the first call of ps_begin_page(3) which now comes after ps_findfont(3). Consequently the Bound-
ingBox has not been set and a warning will be issued when ps_findfont(3) is called. In order to prevent this situation, one should call
ps_set_parameter(3) to set the BoundingBox before ps_findfont(3) is called.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $fontname
- The name of the font.
o $encoding
-ps_findfont(3) will try to load the file passed in the parameter $encoding. Encoding files are of the same syntax as those used
by dvips(1). They contain a font encoding vector (which is currently not used but must be present) and a list of extra ligatures
to extend the list of ligatures derived from the afm file. $encoding can be NULL or the empty string if the default encoding
(TeXBase1) shall be used. If the encoding is set to builtin then there will be no reencoding and the font specific encoding will
be used. This is very useful with symbol fonts.
o $embed
- If set to a value >0 the font will be embedded into the document. This requires the font outline (.pfb file) to be present.
RETURN VALUES
Returns the identifier of the font or zero in case of an error. The identifier is a positive number.
SEE ALSO
ps_begin_page(3), ps_setfont(3).
PHP Documentation Group PS_FINDFONT(3)