spleen

Monospaced bitmap fonts for consoles, terminals, and code editors
Log | Files | Refs | README | LICENSE

commit ce4d72f11cfb7a51658985cea97dac4fdb6410b8
parent f6592b3fddb7d48bf373dc8a6795f14085a87ca1
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed,  4 Sep 2019 09:32:21 +0200

Add a target to generate a specimen file.

Diffstat:
MMakefile | 32+++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -4,7 +4,7 @@ # https://www.cambus.net/ # # Created: 2019-01-29 -# Last Updated: 2019-08-29 +# Last Updated: 2019-09-04 # # Spleen is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -47,5 +47,35 @@ screenshots: .endfor optipng *.png +specimen: + echo "\n Spleen " | \ + pbmtext -font spleen-32x64.bdf -nomargins | \ + ppmchange white "#ff7f2a" | \ + ppmchange black "#fff" > spleen.pnm + + echo "\n Aa Ee Gg \n Qq Rr Ss" | \ + pbmtext -font spleen-32x64.bdf -nomargins | \ + ppmchange white "#ff7f2a" > examples.pnm + + echo "\n The future " | \ + pbmtext -font spleen-32x64.bdf -nomargins | \ + ppmchange white "#ff7f2a" | \ + ppmchange black "#fff" > future.pnm + + echo " abcdefghijklm \n nopqrstuvwxyz" | \ + pbmtext -font spleen-32x64.bdf -nomargins | \ + ppmchange white "#ff2a7f" > letters.pnm + + echo " 0123456789 " | \ + pbmtext -font spleen-32x64.bdf -nomargins | \ + ppmchange white "#ff2a7f" | \ + ppmchange black "#fff" > digits.pnm + + pnmcat -tb spleen.pnm examples.pnm future.pnm letters.pnm digits.pnm | \ + pnmtopng > specimen.png + + rm *.pnm + optipng *.png + clean: rm -f *.pcf *.psfu *.dfont *.png