-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
-
-sfd2ttf:
+all: outline
+
+#
+# Commented out this operation on SFD file because not all applications
+# correctly interpreted the settings:
+#
+# SetFontNames("UnifontMedium", "GNU", "Unifont", "Medium", $(COPYRIGHT), "$(VERSION)"); \
+#
+# Convert unifont.hex to unifont.sfd as a single file, then generate
+# an outline TrueType font.
+#
+outline: $(FONTFILE).hex $(BINDIR)/hex2sfd
+ echo "Converting font as a single file."
+ $(BINDIR)/hex2sfd $(COMBINING).txt < $(FONTFILE).hex > $(FONTFILE).sfd
+ $(FONTFORGE) -lang=ff -c \
+ 'Open($$1); \
+ SetFontNames("$(PSNAME)Medium", \
+ "$(FONTNAME)", "$(FONTNAME)", "Medium", \
+ $(COPYRIGHT), "$(VERSION)"); \
+ SelectAll(); \
+ RemoveOverlap(); \
+ Simplify(64,1); \
+ Save($$1);' \
+ $(FONTFILE).sfd