2025-01-08 03:11:37 +00:00
|
|
|
NAME := VideowayMono
|
2025-01-13 01:54:02 +00:00
|
|
|
FILES := ${NAME}-11.bdf \
|
|
|
|
${NAME}-22.bdf \
|
|
|
|
${NAME}.ttf \
|
|
|
|
${NAME}HiDpi.ttf \
|
|
|
|
${NAME}.woff2 \
|
|
|
|
${NAME}HiDpi.woff2 \
|
|
|
|
${NAME}.otb \
|
|
|
|
${NAME}.psf \
|
|
|
|
${NAME}-11.fnt \
|
|
|
|
${NAME}-22.fnt \
|
|
|
|
${NAME}.dfont \
|
|
|
|
readme.html
|
2025-01-08 03:11:37 +00:00
|
|
|
|
2025-01-10 05:59:40 +00:00
|
|
|
.SUFFIXES: .sfd .bdf .otb .psf .fnt .dfont .ttf .woff2
|
2025-01-08 03:11:37 +00:00
|
|
|
|
|
|
|
all: ${FILES}
|
|
|
|
|
2025-01-09 23:29:21 +00:00
|
|
|
%-11.bdf %-22.bdf &: %.sfd
|
|
|
|
fontforge -quiet -lang ff -c 'Open("$<");Generate("$*.bdf","bdf")'
|
2025-01-08 03:11:37 +00:00
|
|
|
.sfd.otb:
|
|
|
|
fontforge -quiet -lang ff -c 'Open("$<");Generate("$@","otb")'
|
|
|
|
.sfd.psf:
|
|
|
|
fontforge -quiet -lang ff -c 'Open("$<");Generate("$@","psf")'
|
2025-01-09 23:29:21 +00:00
|
|
|
%-11.fnt %-22.fnt &: %.sfd
|
|
|
|
fontforge -quiet -lang ff -c 'Open("$<");Generate("$*.fnt","fnt")'
|
2025-01-08 03:11:37 +00:00
|
|
|
.sfd.dfont:
|
|
|
|
fontforge -quiet -lang ff -c 'Open("$<");Generate("$@", "sbit")'
|
2025-01-09 23:29:21 +00:00
|
|
|
%.ttf: %-11.bdf
|
2025-01-08 03:11:37 +00:00
|
|
|
rm -f $@
|
|
|
|
bitsnpicas convertbitmap -f ttf -o $@ $<
|
2025-01-09 23:29:21 +00:00
|
|
|
%HiDpi.ttf: %-22.bdf
|
|
|
|
rm -f $@
|
|
|
|
bitsnpicas convertbitmap -f ttf -o $@ -s Mono -r Mono-HiDpi $<
|
2025-01-10 05:59:40 +00:00
|
|
|
.ttf.woff2:
|
|
|
|
woff2_compress $<
|
2025-01-08 03:11:37 +00:00
|
|
|
|
2025-01-13 01:54:02 +00:00
|
|
|
%.html: %.tpl ${NAME}.ttf
|
|
|
|
sed '/%GLYPHS%/r'<(./gen_glyphs.sh ${NAME}.ttf) $< > $@
|
|
|
|
sed -i 's/%GLYPHS%//' $@
|
|
|
|
|
|
|
|
%.zip: ${FILES}
|
|
|
|
rm -f $@
|
|
|
|
zip -9 $@ ${FILES} styles.css
|
|
|
|
|
|
|
|
dist: ${NAME}.zip
|
|
|
|
|
2025-01-08 03:11:37 +00:00
|
|
|
clean:
|
2025-01-13 01:54:02 +00:00
|
|
|
rm -f ${FILES} ${NAME}.afm
|