shithub: riscv

ref: d116b2d47ca4d0e5895c360f4cbcb51d6a19e0da
dir: /rc/bin/troff2png/

View raw version
#!/bin/rc

troff -ms $* | aux/tr2post |
	gs -g1000x1600 -r100 -dNOPAUSE -dQUIET \
		'-dGraphicsAlphaBits=4' '-dTextAlphaBits=4' \
		'-sOUTPUTFILE=-' '-sDEVICE=plan9' - quit.ps |
	{crop -c 255 255 255; cat >/dev/null} | 
	topng