Skip to content

Fix: Don't print char 133 when making sprite font - #266

Open
zephyris wants to merge 1 commit into
mainfrom
fix-font-newline
Open

zephyris wants to merge 1 commit into
mainfrom
fix-font-newline

Conversation

@zephyris

@zephyris zephyris commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Sprite font generation script could fail. Char 133 (NEL, Next Line) can't be printed using the font layouter in recent PIL versions (libraqm 0.11.0 / Pillow 13.0+).

Change to catch all such control characters before printing, and replace with an empty string.

Char 133 (NEL, Next Line) can't be printed using the font layouter in recent PIL versions (libraqm 0.11.0 / Pillow 13.0+). Change to catch control characters before printing, and replace with an empty string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant