From 72c1ac97724c4f2a4590d4b99fac68a3eb65f21b Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Wed, 3 Aug 2022 08:52:31 +0100 Subject: [PATCH] Convert fonts to CLX Fonts are loaded as CLX as of https://github.com/diasurgical/devilutionX/pull/5183 --- build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 566c0b1..7e049d8 100755 --- a/build.sh +++ b/build.sh @@ -14,9 +14,15 @@ main() { } build_fonts_mpq() { + if ! which pcx2clx; then + echo "Please install pcx2clx from https://github.com/diasurgical/devilutionx-graphics-tools/" + exit 1 + fi rm -f fonts.mpq - cd assets - find * -type f -exec smpq -M 1 -C BZIP2 -c ../fonts.mpq '{}' '+' + mkdir -p build/fonts + pcx2clx --output-dir build/fonts --transparent-color 1 --num-sprites 256 --quiet assets/fonts/*.pcx + cd build + find fonts -type f -exec smpq -M 1 -C BZIP2 -c ../fonts.mpq '{}' '+' cd - }