commit 52a82f77e54abbbd92c1a2be46f59b1588f7f3c3
parent fcf7e9470645650a83eab03bac5ea9f55d084af6
Author: Frederic Cambus <fred@statdns.com>
Date: Fri, 11 Jun 2021 10:34:09 +0200
Add an 'otb' target to generate OTB files for all sizes using fonttosfnt.
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -4,7 +4,7 @@
# https://www.cambus.net/
#
# Created: 2019-01-29
-# Last Updated: 2020-06-20
+# Last Updated: 2021-06-11
#
# Spleen is released under the BSD 2-Clause license.
# See LICENSE file for details.
@@ -15,6 +15,7 @@ BDF2PSF ?= bdf2psf
BDF2SFD ?= bdf2sfd
FONTFORGE ?= fontforge
OPTIPNG ?= optipng
+FONTTOSFNT ?= fonttosfnt
PBMTEXT ?= pbmtext
PPMCHANGE ?= ppmchange
@@ -52,6 +53,11 @@ psf:
$(BDF2PSF) --fb spleen-${size}.bdf $(OPTIONS) spleen-${size}.psfu
.endfor
+otb:
+.for size in $(SIZES)
+ $(FONTTOSFNT) -b -c -o spleen-${size}.otb spleen-${size}.bdf
+.endfor
+
sfd:
.for size in $(OTFSIZES)
$(BDF2SFD) -f "Spleen ${size}" -p "Spleen${size}" spleen-${size}.bdf > spleen-${size}.sfd