mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 10:32:02 +01:00
Generalizes #8602 from "no font loaded yet" to "nothing laid out yet this pass": any font, provider, rasterizer or glyph-policy change made before the first text of a pass takes effect in that pass, since nothing is laid out with the old fonts. #8602 missed the case where `default_fonts` is on: an app that installs its own fonts during its first pass then laid that pass out with the bundled fonts, and under `MissingGlyphPolicy::Panic` any glyph they lack (Rerun's ⏎, on a Linux CI box with no system fonts) panics. New `Fonts::used_since_begin_pass` is what the check reads. Written by Claude (an LLM) for @emilk. * [x] I have followed the instructions in the PR template 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>