Skip to content

Conversation

@lucasmerlin
Copy link
Collaborator

This reverts to the glyph_width behaviour before #7431 - return 0.0 if font not found instead of panicing.
The main use for this is when using __run_test_ui, which doesn't register any fonts, any code using glyph_width would previously panic.

@lucasmerlin lucasmerlin added this to the 0.33.0 milestone Sep 23, 2025
@lucasmerlin lucasmerlin changed the title Return 0.0 if font not found in glyph_width Return 0.0 if font not found in glyph_width instead of panic Sep 23, 2025
@github-actions
Copy link

Preview available at https://egui-pr-preview.github.io/pr/7559-lucasread-glyph-width-test
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk merged commit 47c5617 into main Sep 30, 2025
47 checks passed
@emilk emilk deleted the lucas/read-glyph-width-test branch September 30, 2025 08:12
podusowski pushed a commit to podusowski/egui that referenced this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to read glyph_width in egui_commonmark

3 participants