Skip to content

Commit

Permalink
mkfontbuiltin: avoid xxd -n which is not everywhere yet
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Oct 5, 2024
1 parent 8513c0e commit 1371d09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rdpq/mkfontbuiltin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ BUILTIN="monogram at01"
rm -f rdpq_font_builtin.c
for font in $BUILTIN; do
"$N64_INST/bin/mkfont" --compress 0 --output $TMPDIR --range 20-BF --outline 1 "$@" "$FONTDB/$font.ttf"
xxd -i -n __fontdb_$font $TMPDIR/$font.font64 >>rdpq_font_builtin.c
OUTFN="$TMPDIR/$font.font64"
OUTFN_C=$(echo $OUTFN | sed 's/[/.]/_/g')
xxd -i $OUTFN | sed "s/${OUTFN_C}/__fontdb_${font}/g" >>rdpq_font_builtin.c
done

0 comments on commit 1371d09

Please sign in to comment.