psf2fnt(1)
π 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 to32(space).--charset=charsetβ sets the character set of the resulting font. Can be one of the wordsANSI,OEMorSYMBOL; 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; peeppsfpages(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 to46(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 to48.--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 be1,2or3. 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
- nixpkgs unstable: psftools 1.1.3
- ubuntu stonking: psftools 1.1.3-1
- Copyright (c) 2005, 2007 John Elliott
- Copyright (C) 2005, 2007 John Elliott
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms