psf2fnt(1)

πŸ“¦
version 1.1.3 Β· 2 versions
, in nixpkgs unstable, ubuntu stonking

πŸŽ€ NAME πŸŽ€

psf2fnt β€” convert a PC Screen Font file to a Windows font-resource file. This is one of the PSF Tools, and yes bestie, it's exactly as niche and exactly as powerful as it sounds πŸ’…


✨ SYNOPSIS ✨

psf2fnt [--ascent=ASC] [--bold] [--brkchar=CHAR] [--copy=COPYRIGHT]
[--codepage=CODEPAGE] [--charset=CHARSET] [--defchar=DEFAULT]
[--firstchar=FIRST] [--fontname=NAME] [--horzres=DPI] [--italic]
[--lastchar=CHAR] [--pointsize=SIZE] [--version=FORMAT] [--vertres=DPI]
[INPUTFILE [OUTPUTFILE]]

🌸 DESCRIPTION 🌸

okay so here's the vibe: psf2fnt takes some or all of the characters from a .PSF font and saves them as a Windows font-resource file β€” the same kind of file the Windows SDK tool FONTEDIT works with. Once you've got that file, you run it through fnts2fon(1) and boom πŸ’₯ you've got yourself an installable font. Main character energy, honestly.


πŸ’… OPTIONS πŸ’…

  • --ascent β€” sets the distance from the baseline to the top of the character. Defaults to the height of the font, minus 1. 🫢
  • --bold β€” marks the resulting font as bold. slay.
  • --brkchar=nnn β€” sets the index of the character used to print word breaks. Defaults to 32 (space).
  • --charset=charset β€” sets the character set of the resulting font. Can be one of the words ANSI, OEM or SYMBOL; or a numeric value.
  • --codepage=x β€” extracts only the characters in the given codepage. (Heads up: this requires the source PSF file to have a Unicode directory, no cap.) Any characters in the codepage that aren't present in the source font get replaced by blanks. You can specify the codepage by number or by name; peep psfpages(1) for the list of acceptable codepage names πŸ‘‘
  • --copy=string β€” sets the copyright string in the resulting font. Real talk though: spaces will have to be escaped to hide them from the shell. 😭
  • --defchar=nnn β€” sets the index of the character used to display out-of-range characters. Defaults to 46 (full stop).
  • --first=n β€” extracts characters starting at the specified character.
  • --fontname=name β€” sets the name of the output font. ✨
  • --horzres=nnn β€” sets the horizontal resolution of the font in DPI. Defaults to 48.
  • --italic β€” marks the font as italic. πŸ’œ
  • --last=n β€” extracts characters up to and including the specified character.
  • --pointsize=n β€” sets the font point size. This defaults to the font height in pixels.
  • --version=n β€” sets the file format version. This can be 1, 2 or 3. Version 1 should only be used if you're creating a font for Windows 1.0. Version 2 should be used if the font is less than 64k in size; otherwise, use Version 3. ⭐
  • --vertres=DPI β€” ngl this one shows up in the synopsis up there, but the page itself never says what it does, and I am not about to make things up. So: it exists, that's the tea. πŸ’€
If a codepage and a range of characters are both specified, the range is applied to the subset of characters extracted by the codepage. ikyk 😌

🌈 SEE ALSO 🌈

fnt2psf(1), psfpages(1), vfont2fnt(1)


πŸ‘‘ AUTHOR πŸ‘‘

John Elliott <seasip.webmaster@gmail.com>.


and that's the whole page, bestie πŸ¦‹ this version is Version 1.1.3, dated 28 April, 2026, from the PSF Tools, and yes β€” it's still filed under psf2fnt(1). go forth and convert, you absolute icon πŸŽ€πŸ’–

πŸ“¦ where this page comes from