2024-10-31 12:53:40 +01:00
|
|
|
#!/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;
|
|
|
|
|
2024-11-17 12:29:59 +01:00
|
|
|
# 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
|
|
|
|
|
2024-10-31 12:53:40 +01:00
|
|
|
# remove duplicate ids from unifont.hex
|
|
|
|
for i in "${ids[@]}"; do
|
|
|
|
echo $i;
|
|
|
|
sed -i "/^$i/d" unifont.hex
|
|
|
|
done;
|
|
|
|
|
2024-11-17 12:29:59 +01:00
|
|
|
# concat cleaned unifont.hex and qunifont.hex
|
2024-11-02 12:38:04 +01:00
|
|
|
cat unifont.hex > merge.hex
|
|
|
|
cat qunifont.hex >> merge.hex
|