diff options
author | jaseg <jaseg@jaseg.net> | 2013-12-30 20:16:50 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2013-12-30 20:16:50 +0100 |
commit | 21b9596a98fbe051b1b194bdd4c99293233b7922 (patch) | |
tree | 33d54b8e44fe4b6f496cd0c74f1b2924ed4bdf0a /host/matelight/fonts/map_fonts | |
parent | 493863fcc0d0bc52a27631eeb76a85446f3e6760 (diff) | |
download | matelight-21b9596a98fbe051b1b194bdd4c99293233b7922.tar.gz matelight-21b9596a98fbe051b1b194bdd4c99293233b7922.tar.bz2 matelight-21b9596a98fbe051b1b194bdd4c99293233b7922.zip |
Added some bdf fonts
Diffstat (limited to 'host/matelight/fonts/map_fonts')
-rwxr-xr-x | host/matelight/fonts/map_fonts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/host/matelight/fonts/map_fonts b/host/matelight/fonts/map_fonts new file mode 100755 index 0000000..d2d983c --- /dev/null +++ b/host/matelight/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 .. |