-all: hex2sfd merge sfd2ttf sbit
-
-hex2sfd: unifont.hex $(BINDIR)/hex2sfd
- echo "Separating unifont.hex into 16 parts"
- for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F ; \
- do \
- grep ^$$i unifont.hex > $$i.hex ; \
- $(BINDIR)/hex2sfd < $$i.hex > $$i.sfd ; \
- done
- for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F ; \
- do \
- $(FONTFORGE) -lang=ff -c \
- 'Open($$1); \
- SelectAll(); \
- RemoveOverlap(); \
- Simplify(64,1); \
- Save($$1);' \
- $$i.sfd ; \
- \rm -f $$i.hex ; \
- done
-
-# We join all the generated .sfd files into a single one,
-# and generate the final TrueType font.
-
-merge:
- echo "Merging all .sfd files"
- $(FONTFORGE) -script all.pe