- cp $(COMPILED_DIR)/unifont-$(VERSION).hex $(TTFSRC)/unifont.hex
- cd $(TTFSRC) ; make && make clean
- mv $(TTFSRC)/unifont.sfd $(COMPILED_DIR)/unifont.sfd
- mv $(TTFSRC)/unifont.ttf $(COMPILED_DIR)/unifont-$(VERSION).ttf
- gzip -f -9 $(COMPILED_DIR)/unifont.sfd
+ # First copy the ordinary version, to make a TrueType font.
+ install -p \
+ $(COMPILED_DIR)/unifont-$(VERSION).hex \
+ $(TTFSRC)/unifont.hex
+ install -p \
+ $(HEXDIR)/bmp-combining.txt \
+ $(TTFSRC)/combining.txt
+ cd $(TTFSRC) ; \
+ make FONTFILE="unifont" COMBINING="combining" \
+ FONTNAME="Unifont" PSNAME="Unifont"
+ mv $(TTFSRC)/unifont.sfd $(COMPILED_DIR)/unifont-$(VERSION).sfd
+ mv $(TTFSRC)/unifont.ttf \
+ $(COMPILED_DIR)/unifont-$(VERSION).ttf
+ # Second copy unifont_sample.bdf, to make an SBIT font.
+ install -p \
+ $(COMPILED_DIR)/unifont_sample-$(VERSION).bdf \
+ $(TTFSRC)/unifont_sample.bdf
+ cd $(TTFSRC) ; \
+ make sbit FONTFILE="unifont_sample" COMBINING="" \
+ FONTNAME="Unifont Sample" PSNAME="UnifontSample"
+ mv $(TTFSRC)/unifont_sample.ttf \
+ $(COMPILED_DIR)/unifont_sample-$(VERSION).ttf
+ gzip -f -9 $(COMPILED_DIR)/unifont-$(VERSION).sfd
+
+#
+# Now build the ConScript Unicode Registry PUA font.
+#
+csurttf:
+ install -p \
+ $(COMPILED_DIR)/unifont_csur-$(VERSION).hex \
+ $(TTFSRC)/unifont_csur.hex
+ sort -u plane00csur/csur-combining.txt $(HEXDIR)/bmp-combining.txt \
+ > $(TTFSRC)/combining_csur.txt
+ cd $(TTFSRC) ; \
+ make outline FONTFILE="unifont_csur" COMBINING="combining_csur" \
+ FONTNAME="Unifont CSUR" PSNAME="UnifontCSUR"
+ mv $(TTFSRC)/unifont_csur.sfd \
+ $(COMPILED_DIR)/unifont_csur-$(VERSION).sfd
+ mv $(TTFSRC)/unifont_csur.ttf \
+ $(COMPILED_DIR)/unifont_csur-$(VERSION).ttf
+ gzip -f -9 $(COMPILED_DIR)/unifont_csur-$(VERSION).sfd