vfont2ppm(1)
π 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 (thinkp) may sit at a different height than one without (thinko). π if you throw--alignin 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 π
xv(1)psf2xbm(1)
π 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
- nixpkgs unstable: psftools 1.1.3
- ubuntu stonking: psftools 1.1.3-1
- Copyright (c) 2005, 2007, 2021 John Elliott
- Copyright (C) 2005, 2007, 2021 John Elliott
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms