You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
597 B
23 lines
597 B
#!/bin/bash
|
|
|
|
# convert qunifont uniascii to unihex
|
|
./unifont/src/hexdraw qunifont.txt > qunifont.hex
|
|
|
|
# get new glyphs ids
|
|
ids=();
|
|
for i in `cat qunifont.hex`; do
|
|
ids+=($(echo "$i" | cut -d : -f 1):)
|
|
done;
|
|
|
|
# copy unifont.hex (only the beginning so it's lighter and easier to work with for the moment)
|
|
head -n 254 unifont/font/plane00/unifont-base.hex > unifont.hex
|
|
|
|
# remove duplicate ids from unifont.hex
|
|
for i in "${ids[@]}"; do
|
|
echo $i;
|
|
sed -i "/^$i/d" unifont.hex
|
|
done;
|
|
|
|
# concat cleaned unifont.hex and qunifont.hex
|
|
cat unifont.hex > merge.hex
|
|
cat qunifont.hex >> merge.hex
|
|
|