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
IMAGEPSENCODEFONT(3) 1 IMAGEPSENCODEFONT(3)
imagepsencodefont - Change the character encoding vector of a font
SYNOPSIS
bool imagepsencodefont (resource $font_index, string $encodingfile)
DESCRIPTION
Loads a character encoding vector from a file and changes the fonts encoding vector to it. As a PostScript fonts default vector lacks most
of the character positions above 127, you'll definitely want to change this if you use a language other than English.
If you find yourself using this function all the time, a much better way to define the encoding is to set ps.default_encoding in the con-
figuration file to point to the right encoding file and all fonts you load will automatically have the right encoding.
PARAMETERS
o $font_index
- A font resource, returned by imagepsloadfont(3).
o $encodingfile
- The exact format of this file is described in T1libs documentation. T1lib comes with two ready-to-use files, IsoLatin1.enc and
IsoLatin2.enc.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imagepsencodefont(3) example
<?php
// Load a .pfb font file
$font = imagepsloadfont('./px3l.pfb');
// Tell T1lib to use ISO Latin 1 encoding
imagepsencode($font, './IsoLatin1.enc');
// Do any operations with the font here
// Free the font from memory
imagepsfreefont($font);
?>
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 7.0.0 | |
| | |
| | T1Lib support was removed from PHP, thrus remov- |
| | ing this function. |
| | |
+--------+---------------------------------------------------+
NOTES
Note
This function is only available if PHP is compiled using --with-t1lib[=DIR].
PHP Documentation Group IMAGEPSENCODEFONT(3)