psf2bsd(1)

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

πŸ’– psf2bsd β€” bestie edition πŸ’–

okay so you know psf2bsd? it's a little tool from PSF Tools and it lives in section 1 of the manual, so yeah, it's a command you just run in your shell, no cap. let's get into it 🫢


✨ NAME ✨

psf2bsd β€” convert a PC Screen Font file to a BSD soft-font kernel header πŸ’…

like... it takes your cute little .PSF font and turns it into a header the BSD kernel can vibe with. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

psf2bsd [--name=NAME] [--typeface=NAME] [--encoding=ENC] [--first=FIRST]
[--last=LAST] [INPUTFILE [OUTPUTFILE]]

so yes, all those flags are optional, and the input and output files are optional too. it's giving "we'll figure it out" energy ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole thing that psf2bsd does: it converts a font that's in the .PSF format β€” that's PC Screen Font β€” into the format used by the NetBSD wsfont kernel headers.

that's it. that's the job. it takes font, it makes kernel header. main character energy fr fr πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • --name=NAME β€” sets the name of the C structure that's gonna hold the font. defaults to 'font'. for example, --name=bold8x16 πŸ’–
  • --typeface=NAME β€” sets the displayed name of the typeface. for example, --name=Boldface 🌈
  • --encoding=ENC β€” sets the encoding to use. this should be one of the WSDISPLAY_FONTENC_* macros. and for convenience, bestie, you can ALSO use --encoding=437 as shorthand for WSDISPLAY_FONTENC_IBM, and --encoding=819 as shorthand for WSDISPLAY_FONTENC_ISO ✨
  • --first=FIRST β€” sets the first character to include in the output file πŸ“
  • --last=LAST β€” sets the last character to include in the output file πŸ“

πŸ’€ BUGS πŸ’€

for anything other than the simplest test cases, horizontal alignment of the output will almost certainly look untidy. 😭

yeah. it's messy. we know. it's not a bug so much as a lifestyle, but they put it in the BUGS section so here we are. if you're doing anything fancier than the most basic test case, expect the columns to be a little... slanted. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

John Elliott <seasip.webmaster@gmail.com>. πŸ’œ


and that's the whole page!! it's from PSF Tools, version 1.1.3, dated 28 April, 2026 β€” so like, take that energy with you and go convert some fonts, bestie πŸ§šβœ¨πŸ’…

πŸ“¦ where this page comes from