ams2psf(1)
β¨ NAME β¨
ams2psf β the lil glow-up machine that turns an Amstrad CP/M font into a PC Screen Font file. π
It's part of the PSF Tools crew, and honestly? She's iconic for it.
π SYNOPSIS π
ams2psf [--codepage=CODEPAGE] [--psf1] [--psf2] [INPUTFILE [OUTPUTFILE]]
Bestie, that's it. That's the whole invocation. So clean. β¨
π¦ DESCRIPTION π¦
Okay so here's the vibe: ams2psf takes a file that it presumes holds an Amstrad CP/M font and converts it into the .PSF format. No cap. π«Ά
Now, the part that's lowkey genius β it auto-detects which of these formats you handed it:
- LocoScript screen fonts (
SCRCHAR.JOY) - COM files created by
psf2ams(1)or the PCW utilitiesSETFONTandLETAFONT - raw fonts of size
2048or4096bytes
If literally none of those apply? She doesn't give up, she goes hunting. π ams2psf will search for the first 8 bytes of the standard PCW font inside your input file, and that'll locate a font for you β provided that character zero has not been redefined. And that's the whole point, because it means you can extract the font straight out of a CP/M (or LocoScript 1) system file. Main character energy fr fr. π
π OPTIONS π
--codepage=CODEPAGEβ adds a Unicode directory for the codepage you name, and you can ID it by number or by name. Wanna know which names are valid? Run topsfpages(1), she has the full list. π--psf1β forces the output to be in the PSF1 format. Old school, but make it fashion.--psf2β forces the output to be in the PSF2 format. This is the default, so if you say nothing at all, this is what you get. Periodt. π
π BUGS π
Okay so, real talk, there's one lil gremlin in here:
The font search algorithm will produce odd results on EMS files used by LocoScript 2 and higher, because they store characters in a different order from CP/M and LocoScript 1. π
So likeβ¦ the search is gonna find something, bestie, it's just not gonna be the something you wanted. Not me warning you in advance. π
π SEE ALSO π
psf2ams(1)β the reverse glow-up, for when you wanna go back. π¦
π AUTHOR π
John Elliott <seasip.webmaster@gmail.com>. The icon, the legend, the moment. β¨
Version 1.1.3 π stamped 12 January, 2021 π β and that's the whole page, bestie, you're officially certified in ams2psf. Go forth and convert some fonts, you absolute legend. π«ΆπΈ
π¦ where this page comes from
- nixpkgs unstable: psftools 1.1.3
- ubuntu stonking: psftools 1.1.3-1
- Copyright (c) 2005, 2007, 2020 John Elliott
- Copyright (C) 2005, 2007, 2020 John Elliott
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms