Skip to content

Commit

Permalink
Asset Packer: Fix font terminator causing freezes/crashes (#12)
Browse files Browse the repository at this point in the history
* Update asset packer with font freeze fix

* Repack

* Fix terminator of compiled fonts too

* Repack
  • Loading branch information
Willy-JL authored Nov 10, 2024
1 parent 54c6bf9 commit 4e13fbd
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .utils/ext/asset_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def pack_font(src: pathlib.Path, dst: pathlib.Path):
.decode("unicode_escape")
.encode("latin_1")
)
font += b"\0"
dst.with_suffix(".u8f").write_bytes(font)
elif src.suffix == ".u8f":
if not dst.is_file():
Expand Down
Binary file modified baba-is-you/download/baba-is-you.tar.gz
Binary file not shown.
Binary file modified baba-is-you/download/baba-is-you.zip
Binary file not shown.
Binary file modified baba-is-you/source/BABA IS YOU/Fonts/BigNumbers.u8f
Binary file not shown.
Binary file modified baba-is-you/source/BABA IS YOU/Fonts/Primary.u8f
Binary file not shown.
Binary file modified baba-is-you/source/BABA IS YOU/Fonts/Secondary.u8f
Binary file not shown.
Binary file modified pirates/download/pirates.tar.gz
Binary file not shown.
Binary file modified pirates/download/pirates.zip
Binary file not shown.

0 comments on commit 4e13fbd

Please sign in to comment.