#!/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; # remove duplicate ids from unifont.hex #cp unifont/font/plane00/unifont-base.hex unifont.hex for i in "${ids[@]}"; do echo $i; sed -i "/^$i/d" unifont.hex done; # TODO: # cut first n glyphs of unifont-hex to make it lighter # concat qunifont.hex to cleaned unifont.hex cat unifont.hex > merge.hex cat qunifont.hex >> merge.hex