spleen

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

commit 897c477361d614f57f1b00de0d837d34df1f4281
parent 00e4033d1caadfe547c26306f4dcddc700701f16
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon,  2 Dec 2019 20:35:21 +0100

Add a 'otf' target in the Makefile to generate an OTF version from the SFD file.

Diffstat:
MMakefile | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,7 +4,7 @@ # https://www.cambus.net/ # # Created: 2019-01-29 -# Last Updated: 2019-09-19 +# Last Updated: 2019-12-02 # # Spleen is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -12,6 +12,7 @@ BDFTOPCF ?= bdftopcf BDF2PSF ?= bdf2psf +FONTFORGE ?= fontforge PREFIX ?= /usr/local DATADIR ?= $(PREFIX)/share/bdf2psf @@ -37,6 +38,9 @@ psf: $(BDF2PSF) --fb spleen-${size}.bdf $(OPTIONS) spleen-${size}.psfu .endfor +otf: + $(FONTFORGE) -lang ff -c 'Open("spleen.sfd"); Generate("spleen.otf")' + screenshots: .for size in $(SIZES) awk 'BEGIN { for(chr = 32; chr < 127; chr++) printf "%c", chr }' | \ @@ -84,4 +88,4 @@ specimen: optipng *.png clean: - rm -f *.bak *.gz *.pcf *.psfu *.dfont *.png + rm -f *.bak *.gz *.otf *.pcf *.psfu *.dfont *.png