+# Create the .png (Portable Network Graphics) versions of the glyphs.
+#
+png: hex $(BINDIR)/unihex2png
+ if [ ! -d $(PNGDIR) ] ; then \
+ mkdir -p $(PNGDIR) ; \
+ fi
+ if [ ! -d $(PNGDIR)/plane00 ] ; then \
+ mkdir -p $(PNGDIR)/plane00 ; \
+ fi
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2png -p 00$$i$$j \
+ -i $(COMPILED_DIR)/unifont_sample-$(VERSION).hex \
+ -o $(PNGDIR)/plane00/uni00$$i$$j.png ; \
+ done ; \
+ done
+ if [ ! -d $(PNGDIR)/plane01 ] ; then \
+ mkdir -p $(PNGDIR)/plane01 ; \
+ fi
+ # Generate files in plane01/all directory to create PNG files.
+ (cd plane01 && make)
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2png -p 01$$i$$j \
+ -i plane01/all/plane01-all.hex \
+ -o $(PNGDIR)/plane01/uni01$$i$$j.png ; \
+ done ; \
+ done
+ if [ ! -d $(PNGDIR)/plane0E ] ; then \
+ mkdir -p $(PNGDIR)/plane0E ; \
+ fi
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2png -p 0E$$i$$j \
+ -i $(COMPILED_DIR)/unifont_upper_sample-$(VERSION).hex \
+ -o $(PNGDIR)/plane0E/uni0E$$i$$j.png ; \
+ done ; \
+ done
+ if [ ! -d $(PNGDIR)/csur ] ; then \
+ mkdir -p $(PNGDIR)/csur ; \
+ fi
+ for i in E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF \
+ F0 F1 F2 F3 F4 F5 F6 F7 F8 ; do \
+ $(BINDIR)/unihex2png -p 00$$i \
+ -i $(COMPILED_DIR)/unifont_csur_sample-$(VERSION).hex \
+ -o $(PNGDIR)/csur/uni00$$i.png ; \
+ done
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2png -p 0F$$i$$j \
+ -i $(COMPILED_DIR)/unifont_csur_sample-$(VERSION).hex \
+ -o $(PNGDIR)/csur/uni0F$$i$$j.png ; \
+ done ; \
+ done
+ # Create HTML table showing color-coded percent coverage in Plane 0.
+ $(BINDIR)/unipagecount -h < $(COMPILED_DIR)/unifont-$(VERSION).hex \
+ > $(COMPILED_DIR)/plane00.html
+ # Create HTML table showing color-coded percent coverage in Plane 1.
+ ../bin/unipagecount -P1 -h < plane01/all/plane01-all.hex \
+ > compiled/plane01.html
+ echo "Done creating $(PNGDIR)"
+
+
+#
+# Create the .bmp (Bitmap Graphics) versions of the glyphs.