Skip to content

fix font out of bounds exception for non ascii chars#61

Open
Lyuu17 wants to merge 1 commit intoseedhartha:masterfrom
Lyuu17:master
Open

fix font out of bounds exception for non ascii chars#61
Lyuu17 wants to merge 1 commit intoseedhartha:masterfrom
Lyuu17:master

Conversation

@Lyuu17
Copy link
Copy Markdown

@Lyuu17 Lyuu17 commented May 25, 2025

This fixes an out of bounds exception for non-ascii characters

image

@Lyuu17
Copy link
Copy Markdown
Author

Lyuu17 commented May 26, 2025

issue now it looks like this, with a weird bar in the chars
image

modawan added a commit to modawan/reone that referenced this pull request Aug 25, 2025
Gliphs library has 256 glyphs in total. Lower 128 glyphs are ASCII,
higher values are for non-ASCII characters. Char type is 8-bit signed,
so we need to bitcast it to unsigned to avoid negative indices.

The problem was reported and fixed in
seedhartha#61.
@Lyuu17 Lyuu17 closed this Aug 25, 2025
@Lyuu17 Lyuu17 reopened this Aug 25, 2025
modawan added a commit to modawan/reone that referenced this pull request Aug 26, 2025
Gliphs library has 256 glyphs in total. Lower 128 glyphs are ASCII,
higher values are for non-ASCII characters. Char type is 8-bit signed,
so we need to bitcast it to unsigned to avoid negative indices.

The problem was reported and fixed in
seedhartha#61.
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