Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imagepsencodefont(3) [php man page]

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)

Check Out this Related Man Page

ucs2any(1)						      General Commands Manual							ucs2any(1)

NAME
ucs2any - generate BDF fonts containing subsets of ISO 10646-1 codepoints SYNOPSIS
ucs2any [ +d | -d ] source-name { mapping-file registry-encoding } ... DESCRIPTION
ucs2any allows one to generate from an ISO 10646-1 encoded BDF font other BDF fonts in any possible encoding. This way, one can derive from a single ISO 10646-1 master font a whole set of 8-bit fonts in all ISO 8859 and various other encodings. OPTIONS
+d puts DEC VT100 graphics characters in the C0 range (default for upright, character-cell fonts). -d omits DEC VT100 graphics characters from the C0 range (default for all font types except upright, character-cell fonts). OPERANDS
source-name is the name of an ISO 10646-1 encoded BDF file. mapping-file is the name of a character set table like those at <ftp://ftp.unicode.org/Public/MAPPINGS/>. These files can also typically be found installed in the /usr/X11R6/lib/X11/fonts/util/ directory. registry-encoding are the CHARSET_REGISTRY and CHARSET_ENCODING field values for the font name (XLFD) of the target font, separated by a hyphen. Any number of mapping-file and registry-encoding operand pairs may be specified. EXAMPLE
The command ucs2any 6x13.bdf 8859-1.TXT iso8859-1 8859-2.TXT iso8859-2 will generate the files 6x13-iso8859-1.bdf and 6x13-iso8859-2.bdf. FUTURE DIRECTIONS
Hopefully a future release will have a facility similar to ucs2any built into the server, and reencode ISO 10646-1 on the fly, because storing the same fonts in many different encodings is clearly a waste of storage capacity. SEE ALSO
bdftruncate(1) AUTHOR
ucs2any was written by Markus Kuhn. Branden Robinson wrote this manual page, originally for the Debian Project. X Version 11 font-util 1.1.1 ucs2any(1)
Man Page