Skip to content

Commit

Permalink
Convert fonts to CLX
Browse files Browse the repository at this point in the history
Fonts are loaded as CLX as of diasurgical/devilutionX#5183
  • Loading branch information
glebm authored and AJenbo committed Aug 3, 2022
1 parent 4bb483a commit 72c1ac9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
}

Expand Down

0 comments on commit 72c1ac9

Please sign in to comment.