| 1 | #! /bin/bash |
| 2 | |
| 3 | 2> /dev/null |
| 4 | |
| 5 | exepath=$(dirname $0) |
| 6 | strip=$exepath/strip_glyphs.pe |
| 7 | |
| 8 | if [ $# -ne 2 ] ; then |
| 9 | echo "Usage: $(basename $0) fontfile_in fontfile_out" |
| 10 | exit 0 |
| 11 | fi |
| 12 | |
| 13 | if [ ! -x "$strip" ] ; then |
| 14 | echo "Script not found: $strip" |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
| 18 | if [ ! -f "$1" ] ; then |
| 19 | echo "File does not exist: $1" |
| 20 | exit 1 |
| 21 | fi |
| 22 | if [ -z "$2" ] ; then |
| 23 | echo "You need to specify the output file" |
| 24 | exit 1 |
| 25 | fi |
| 26 | |
| 27 | ranges="$ranges u2070:u209F" |
| 28 | ranges="$ranges u2190:u21FF" |
| 29 | ranges="$ranges uF0031:uF15B2" |
| 30 | |
| 31 | $strip $1 $2 $ranges |