aboutsummaryrefslogtreecommitdiff
path: root/host/resources/fonts/map_fonts
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-01-03 13:19:44 +0100
committerjaseg <jaseg@jaseg.net>2014-01-03 13:19:44 +0100
commit9ef5c135e894b2da95940e2556f4df9ce2205552 (patch)
tree3e6538ec4ac69caa9f4db16dad36265fcf5637eb /host/resources/fonts/map_fonts
parent3fd92ee838b39de097ce2b03ebdd37659708e157 (diff)
downloadmatelight-9ef5c135e894b2da95940e2556f4df9ce2205552.tar.gz
matelight-9ef5c135e894b2da95940e2556f4df9ce2205552.tar.bz2
matelight-9ef5c135e894b2da95940e2556f4df9ce2205552.zip
Re-organized the host software directory layout
Diffstat (limited to 'host/resources/fonts/map_fonts')
-rwxr-xr-xhost/resources/fonts/map_fonts33
1 files changed, 33 insertions, 0 deletions
diff --git a/host/resources/fonts/map_fonts b/host/resources/fonts/map_fonts
new file mode 100755
index 0000000..d2d983c
--- /dev/null
+++ b/host/resources/fonts/map_fonts
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Generate a number of useful 8-bit fonts from the ISO 10646-1 master fonts
+# and write them into a new subdirectory derived-fonts/
+# $Id: map_fonts,v 1.9 2006-01-05 20:31:45+00 mgk25 Rel $
+#
+MAPPINGS="../MAPPINGS"
+# specify what we want
+FONTS="4x6 5x7 5x8 6x9 6x10 6x12 6x13 7x13 7x14 8x13 9x15 9x18 10x20 6x13B 6x13O 7x13B 7x13O 7x14B 8x13B 8x13O 9x15B 9x18B"
+# construct list of encodings and ucs2any.pl command line spec
+ENCODINGS=""
+SPEC=""
+for i in 8859-1 8859-2 8859-3 8859-4 8859-5 8859-7 \
+ 8859-8 8859-9 8859-10 8859-13 8859-14 8859-15 8859-16 ; do
+ ENCODINGS="$ENCODINGS ISO$i"
+ SPEC="$SPEC $MAPPINGS/$i.TXT ISO$i"
+done
+ENCODINGS="$ENCODING KOI8-R"
+SPEC="$SPEC $MAPPINGS/KOI8-R.TXT KOI8-R"
+# get a fresh subdirectory and fill in mapping results
+rm -rf derived-fonts/
+mkdir derived-fonts/
+cd derived-fonts/
+for i in $FONTS ; do
+ ../ucs2any.pl +d ../$i.bdf $SPEC
+done
+for i in $FONTS ; do
+ for j in $ENCODINGS ; do
+ bdftopcf $i-$j.bdf >$i-$j.pcf
+ done
+done
+gzip -9 *.pcf
+cd ..