| 1 |
.ds V 2.110 |
| 2 |
.de M |
| 3 |
.BR "\\$1" "(\\$2)\\$3" |
| 4 |
.. |
| 5 |
.de Sp |
| 6 |
.if n .sp |
| 7 |
.if t .sp 0.4 |
| 8 |
.. |
| 9 |
.TH T1REENCODE 1 "LCDF Typetools" "Version \*V" |
| 10 |
.SH NAME |
| 11 |
t1reencode \- re-encode a PostScript Type 1 font |
| 12 |
.SH SYNOPSIS |
| 13 |
.B t1reencode |
| 14 |
\%\-e ENCODING |
| 15 |
\%[OPTIONS...] |
| 16 |
.I font |
| 17 |
.RI [ outputfile ] |
| 18 |
.SH DESCRIPTION |
| 19 |
.BR T1reencode |
| 20 |
changes a PostScript Type\~1 font's embedded encoding. The re-encoded font |
| 21 |
is written to the standard output (but see the |
| 22 |
.B \-\-output |
| 23 |
option). If no input font file is supplied, |
| 24 |
.B t1reencode |
| 25 |
reads a PFA or PFB font from the standard input. |
| 26 |
' |
| 27 |
.SH OPTIONS |
| 28 |
.PD 0 |
| 29 |
.TP 5 |
| 30 |
.BR \-\-encoding "=\fIfile\fR, " \-e " \fIfile" |
| 31 |
Read the encoding from |
| 32 |
.IR file , |
| 33 |
which must contain an encoding in |
| 34 |
.M dvips 1 |
| 35 |
format. Alternatively, |
| 36 |
.I file |
| 37 |
can be one of the following special names, in which case the corresponding |
| 38 |
standard encoding is used. |
| 39 |
.Sp |
| 40 |
.RS |
| 41 |
.TP 23 |
| 42 |
.B Name |
| 43 |
.B Source |
| 44 |
.TP |
| 45 |
StandardEncoding |
| 46 |
Adobe |
| 47 |
.TP |
| 48 |
ISOLatin1Encoding |
| 49 |
Adobe/ISO (synonym: ISO_8859_1_Encoding) |
| 50 |
.TP |
| 51 |
ExpertEncoding |
| 52 |
Adobe |
| 53 |
.TP |
| 54 |
ExpertSubsetEncoding |
| 55 |
Adobe |
| 56 |
.TP |
| 57 |
SymbolEncoding |
| 58 |
Adobe |
| 59 |
.TP |
| 60 |
ISOLatin2Encoding |
| 61 |
ISO (synonym: ISO_8859_2_Encoding) |
| 62 |
.TP |
| 63 |
ISOLatin3Encoding |
| 64 |
ISO (synonym: ISO_8859_3_Encoding) |
| 65 |
.TP |
| 66 |
ISOLatin4Encoding |
| 67 |
ISO (synonym: ISO_8859_4_Encoding) |
| 68 |
.TP |
| 69 |
ISOCyrillicEncoding |
| 70 |
ISO (synonym: ISO_8859_5_Encoding) |
| 71 |
.TP |
| 72 |
ISOGreekEncoding |
| 73 |
ISO (synonym: ISO_8859_7_Encoding) |
| 74 |
.TP |
| 75 |
ISOLatin5Encoding |
| 76 |
ISO (synonym: ISO_8859_9_Encoding) |
| 77 |
.TP |
| 78 |
ISOLatin6Encoding |
| 79 |
ISO (synonym: ISO_8859_10_Encoding) |
| 80 |
.TP |
| 81 |
ISOThaiEncoding |
| 82 |
ISO (synonym: ISO_8859_11_Encoding) |
| 83 |
.TP |
| 84 |
ISOLatin7Encoding |
| 85 |
ISO (synonym: ISO_8859_13_Encoding) |
| 86 |
.TP |
| 87 |
ISOLatin8Encoding |
| 88 |
ISO (synonym: ISO_8859_14_Encoding) |
| 89 |
.TP |
| 90 |
ISOLatin9Encoding |
| 91 |
ISO (synonym: ISO_8859_15_Encoding) |
| 92 |
.TP |
| 93 |
KOI8REncoding |
| 94 |
- |
| 95 |
.RE |
| 96 |
' |
| 97 |
.Sp |
| 98 |
.TP 5 |
| 99 |
.BR \-\-encoding\-text "=\fItext\fR, " \-E " \fItext" |
| 100 |
Use the encoding in the |
| 101 |
.I text |
| 102 |
argument, which must be formatted as a |
| 103 |
.M dvips 1 |
| 104 |
encoding. One of |
| 105 |
.B \-\-encoding |
| 106 |
and |
| 107 |
.B \-\-encoding\-text |
| 108 |
must be supplied. |
| 109 |
' |
| 110 |
.Sp |
| 111 |
.TP 5 |
| 112 |
.BR \-\-name "=\fIname\fR, " \-n " \fIname" |
| 113 |
Set the output font's PostScript name to |
| 114 |
.IR name . |
| 115 |
The default is the input font name followed by the encoding's name. |
| 116 |
' |
| 117 |
.Sp |
| 118 |
.TP 5 |
| 119 |
.BR \-\-full-name "=\fIname\fR, " \-N " \fIname" |
| 120 |
Set the output font's FullName to |
| 121 |
.IR name . |
| 122 |
The default is the input FullName followed by the encoding's name. |
| 123 |
' |
| 124 |
.Sp |
| 125 |
.TP 5 |
| 126 |
.BR \-\-output "=\fIfile\fR, " \-o " \fIfile" |
| 127 |
Send output to |
| 128 |
.I file |
| 129 |
instead of standard output. |
| 130 |
' |
| 131 |
.Sp |
| 132 |
.TP 5 |
| 133 |
.BR \-\-pfb ", " \-b |
| 134 |
Output a PFB font. This is the default. |
| 135 |
' |
| 136 |
.Sp |
| 137 |
.TP 5 |
| 138 |
.BR \-\-pfa ", " \-a |
| 139 |
Output a PFA font. |
| 140 |
' |
| 141 |
.Sp |
| 142 |
.TP 5 |
| 143 |
.BR \-h ", " \-\-help |
| 144 |
Print usage information and exit. |
| 145 |
' |
| 146 |
.Sp |
| 147 |
.TP 5 |
| 148 |
.BR \-\-version |
| 149 |
Print the version number and some short non-warranty information and exit. |
| 150 |
.PD |
| 151 |
' |
| 152 |
.SH "RETURN VALUES" |
| 153 |
.B T1reencode |
| 154 |
exits with value 0 if a re-encoded font was successfully generated, and 1 |
| 155 |
otherwise. |
| 156 |
' |
| 157 |
.SH "NOTES" |
| 158 |
.LP |
| 159 |
.B T1reencode |
| 160 |
should be used only in special situations. It's generally much better to |
| 161 |
use PostScript commands to re-encode a font; for instance, executing the |
| 162 |
PostScript commands to generate two differently-encoded versions of a |
| 163 |
single font will take up much less memory than loading two |
| 164 |
.BR t1reencode d |
| 165 |
fonts. |
| 166 |
' |
| 167 |
.SH "EXAMPLES" |
| 168 |
.PP |
| 169 |
This command re-encodes Frutiger Roman in the ISO Latin\~1 encoding. The new |
| 170 |
font will have the PostScript name Frutiger-RomanISOLatin1Encoding. |
| 171 |
.Sp |
| 172 |
.nf |
| 173 |
\fBt1reencode\fR \fB\-e\fR ISOLatin1Encoding FrutiRom.pfb \e |
| 174 |
\fB\-o\fR FrutiRomISOL1.pfb |
| 175 |
.fi |
| 176 |
.Sp |
| 177 |
This series of commands, which use |
| 178 |
.M cfftot1 1 |
| 179 |
and |
| 180 |
.M otftotfm 1 |
| 181 |
as well as |
| 182 |
.B t1reencode |
| 183 |
itself, generate a version of Warnock Pro Regular with old-style figures in |
| 184 |
the slots for numbers (because of |
| 185 |
.BR otftotfm 's |
| 186 |
.BR \-f onum |
| 187 |
option). The new font will be called WarnockPro-RegularOsF. |
| 188 |
.Sp |
| 189 |
.nf |
| 190 |
\fBotftotfm\fR \fB\-f\fRonum WarnockPro-Regular.otf \e |
| 191 |
\fB\-\-output\-encoding\fR /tmp/osf.enc |
| 192 |
\fBcfftot1\fR WarnockPro-Regular.otf | \fBt1reencode\fR \fB\-e\fR /tmp/osf.enc \e |
| 193 |
\fB\-n\fR WarnockPro-RegularOsF \fB\-N\fR "Warnock Pro Regular OsF" \e |
| 194 |
\fB\-o\fR WarnoProRegOsF.pfb |
| 195 |
.fi |
| 196 |
' |
| 197 |
.SH "SEE ALSO" |
| 198 |
.LP |
| 199 |
.IR "Adobe Type 1 Font Format" , |
| 200 |
.M dvips 1 , |
| 201 |
.M cfftot1 1 , |
| 202 |
.M otftotfm 1 |
| 203 |
' |
| 204 |
.SH AUTHOR |
| 205 |
Eddie Kohler ([email protected]) |