T1REENCODE(1)
π T1REENCODE π
okay so bestie, welcome to the t1reencode page from the General Commands Manual β she's a little niche but she's so useful, trust. t1reencode β re-encode a PostScript Type 1 font. iykyk β¨
πΈ NAME πΈ
t1reencode β re-encode a PostScript Type 1 font π
β¨ SYNOPSIS β¨
t1reencode -e ENCODING [OPTIONS...] font [outputfile]
π¦ DESCRIPTION π¦
so like, T1reencode changes a PostScript Type 1 font's embedded encoding. that's the whole vibe. π
the re-encoded font gets written to the standard output (but peek the --output option if you wanna switch that up π).
and if you don't hand her an input font file? no stress, t1reencode will just read a PFA or PFB font from the standard input instead. she's flexible like that. π«Ά
π OPTIONS π
--encoding=file,-e fileβ read the encoding from file, which must contain an encoding indvips(1)format. OR, file can be one of these special names, and then the matching standard encoding gets used instead:StandardEncodingβ AdobeISOLatin1Encodingβ Adobe/ISO (synonym:ISO_8859_1_Encoding)ExpertEncodingβ AdobeExpertSubsetEncodingβ AdobeSymbolEncodingβ AdobeISOLatin2Encodingβ ISO (synonym:ISO_8859_2_Encoding)ISOLatin3Encodingβ ISO (synonym:ISO_8859_3_Encoding)ISOLatin4Encodingβ ISO (synonym:ISO_8859_4_Encoding)ISOCyrillicEncodingβ ISO (synonym:ISO_8859_5_Encoding)ISOGreekEncodingβ ISO (synonym:ISO_8859_7_Encoding)ISOLatin5Encodingβ ISO (synonym:ISO_8859_9_Encoding)ISOLatin6Encodingβ ISO (synonym:ISO_8859_10_Encoding)ISOThaiEncodingβ ISO (synonym:ISO_8859_11_Encoding)ISOLatin7Encodingβ ISO (synonym:ISO_8859_13_Encoding)ISOLatin8Encodingβ ISO (synonym:ISO_8859_14_Encoding)ISOLatin9Encodingβ ISO (synonym:ISO_8859_15_Encoding)KOI8REncodingβ-
--encoding-text=text,-E textβ use the encoding in the text argument, which must be formatted as advips(1)encoding. π― heads up: one of--encodingand--encoding-texthas to be supplied. not optional, bestie.--name=name,-n nameβ set the output font's PostScript name to name. the default? the input font name followed by the encoding's name. β¨--full-name=name,-N nameβ set the output font'sFullNameto name. default is the inputFullNamefollowed by the encoding's name. π--output=file,-o fileβ send output to file instead of standard output. π--pfb,-bβ output a PFB font. this is the default, so like, she's already doing it. π--pfa,-aβ output a PFA font.-h,--helpβ print usage information and dip. π--versionβ print the version number and some short non-warranty info, then exit.
β RETURN VALUES β
T1reencode exits with value 0 if a re-encoded font was successfully generated, and 1 otherwise. simple as that. β¨
π NOTES π
real talk: T1reencode should be used only in special situations. π
it's generally much better to use PostScript commands to re-encode a font. for instance, executing the PostScript commands to generate two differently-encoded versions of a single font will take up much less memory than loading two t1reencoded fonts. so likeβ¦ she works, but she's not the main character here, no cap. π
π EXAMPLES π
this command re-encodes Frutiger Roman in the ISO Latin 1 encoding. the new font will have the PostScript name Frutiger-RomanISOLatin1Encoding. π
t1reencode -e ISOLatin1Encoding FrutiRom.pfb \
-o FrutiRomISOL1.pfb
this series of commands β which uses cfftot1(1) and otftotfm(1) as well as t1reencode herself β generates a version of Warnock Pro Regular with old-style figures in the slots for numbers (because of otftotfm's -fonum option). the new font will be called WarnockPro-RegularOsF. π₯
otftotfm -fonum WarnockPro-Regular.otf \
--output-encoding /tmp/osf.enc
cfftot1 WarnockPro-Regular.otf | t1reencode -e /tmp/osf.enc \
-n WarnockPro-RegularOsF -N "Warnock Pro Regular OsF" \
-o WarnoProRegOsF.pfb
π§ SEE ALSO π§
Adobe Type 1 Font Format, dvips(1), cfftot1(1), otftotfm(1) π«
π AUTHOR π
Eddie Kohler (ekohler@gmail.com) β thank u for ur service, king π«‘
okay that's the whole page bestie!! πβ¨ this was Version 2.110 of the LCDF Typetools, aka the T1REENCODE(1) page β go forth and re-encode responsibly, mwah ππ¦π
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian trixie: lcdf-typetools 2.110-1 Β· GPL-2.0-only
- fedora 44: texlive-lcdftypetools 12:svn70015-105.fc44 Β· GPL-1.0-or-later
- fedora 44: texlive-lcdftypetools 12:svn70015-111.fc44 Β· GPL-1.0-or-later
- nixos 26.05: lcdf-typetools 2.110
- nixpkgs unstable: lcdf-typetools 2.110
- opensuse-leap 16.0: lcdf-typetools 2.110-bp160.1.13 Β· GPL-2.0-only
- opensuse-leap 16.0: lcdf-typetools 2.110-bp160.1.13 Β· GPL-2.0-only
- opensuse-leap 16.0: lcdf-typetools 2.110-bp160.1.13 Β· GPL-2.0-only
- opensuse-leap 16.0: lcdf-typetools 2.110-bp160.1.13 Β· GPL-2.0-only
- opensuse-leap 16.0: texlive-lcdftypetools 2025.222.svn70015-160000.3.1 Β· GPL-2.0-or-later
- ubuntu noble: lcdf-typetools 2.110-1build1 Β· GPL-2.0-only
- ubuntu questing: lcdf-typetools 2.110-1build1
- ubuntu resolute: lcdf-typetools 2.110-1build2 Β· GPL-2.0-only
- ubuntu stonking: lcdf-typetools 2.110-1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms