vfont2ppm(1)

πŸ“¦ version 1.1.3, in nixpkgs unstable, ubuntu stonking

πŸ’– vfont2ppm(1) β€” the PSF Tools glow-up πŸ’–

okay bestie, listen. this is vfont2ppm, a lil tool from PSF Tools, and it's genuinely iconic for one specific job: turning a vfont (or vfont2) file into a Portable PixMap so you can actually look at it with your eyeballs instead of squinting at hex. i got you. 🫢


✨ NAME ✨

vfont2ppm β€” convert a vfont or vfont2 file to a portable bitmap πŸ’…


🌸 SYNOPSIS 🌸

vfont2ppm [-across=columns] [-align] [INPUTFILE [OUTPUTFILE]]

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: vfont2ppm converts a font in the .PSF format into a Portable PixMap image, and that image shows all its characters, laid out 32 to a line by default. no cap, it's the easiest way to preview vfont files β€” you literally just pipe them into it, like:

vfont2ppm | xv -

and boom, you're staring at your font. main character energy fr fr. ✨

now, the cute details on the resulting image, bc this is where it gets good:

  • the character's baseline point shows up in red πŸ”΄
  • the horizontal and vertical baselines show up in green 🟒
  • and if the baseline point is outside the character bitmap? then the space between it and the bitmap gets shown in yellow 🟑

it's giving annotated, and we love that. πŸŽ€


πŸ’… OPTIONS πŸ’…

  • --across=columns β€” sets how many columns to display (32 by default, she's the standard). the number of rows gets derived from the number of columns, so you don't gotta do that math yourself. 🧚
  • --align β€” okay so by default, the character bitmaps are shown with no attempt to align them horizontally or vertically. which means a character with a descender (think p) may sit at a different height than one without (think o). πŸ™ˆ if you throw --align in there, their horizontal and vertical basepoints get aligned to a grid. slay. but fair warning: this may result in more white space between the bitmaps. trade-offs, bestie. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


🌈 AUTHOR 🌈

John Elliott <seasip.webmaster@gmail.com> πŸ’œ β€” the legend himself.


ngl, if you're previewing fonts and you're not piping to xv, what are you even doing. iykyk. πŸ’–

and that's the whole page, periodt. ✨ this was Version 1.1.3, dated 22 January, 2021, brought to you by the PSF Tools girlies β€” go convert something cute. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from