Skip to content

fix(ui): measure item counts with Skia font renderer - #1103

Merged
Wyvest merged 1 commit into
Polyfrost:v1from
saadndm:fix/font-crash
Sep 23, 2026
Merged

Wyvest merged 1 commit into
Polyfrost:v1from
saadndm:fix/font-crash

Conversation

@saadndm

@saadndm saadndm commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

On 1.21.10+, Font.width() bakes missing glyphs and leaves GL_UNPACK_ROW_LENGTH/SKIP_* set. Inside the Compose warm-up, Skia's next texture upload then read past its buffer and segfaulted on startup.

Fixed by measuring with McFontQueue.measureTextWidth instead.

@Wyvest
Wyvest merged commit 7d5ba30 into Polyfrost:v1 Sep 23, 2026
1 check passed
@saadndm
saadndm deleted the fix/font-crash branch September 23, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants