#!/bin/sh
# $Id$

for out in src/text/ttf.c src/text/boldttf.c; do
	echo '/* $Id$ */' > $out
	echo '#include <Mw/Milsko.h>' >> $out
	echo '' >> $out
	echo '#if defined(USE_STB_TRUETYPE) || defined(USE_FREETYPE2)' >> $out
done
xxd -n MwTTFData -i resource/IBMPlexMono.ttf | sed s/_len/Size/ >> src/text/ttf.c
xxd -n MwBoldTTFData -i resource/IBMPlexMono-Bold.ttf | sed s/_len/Size/ >> src/text/boldttf.c
for out in src/text/ttf.c src/text/boldttf.c; do
	echo '#endif' >> $out
done
