T1REENCODE(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸ’– 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 in dvips(1) format. OR, file can be one of these special names, and then the matching standard encoding gets used instead:
    • StandardEncoding β€” Adobe
    • ISOLatin1Encoding β€” Adobe/ISO (synonym: ISO_8859_1_Encoding)
    • ExpertEncoding β€” Adobe
    • ExpertSubsetEncoding β€” Adobe
    • SymbolEncoding β€” Adobe
    • ISOLatin2Encoding β€” 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 a dvips(1) encoding. 🎯 heads up: one of --encoding and --encoding-text has 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's FullName to name. default is the input FullName followed 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