mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Two bugs in layout_shaped_run: 1. When the shaper returned NOTDEF, glyph_info was resolved via font fallback but the returned FontFaceKey was discarded. The glyph was then allocated with run.font_key (the face that couldn't render it), causing the glyph to silently render as invisible. Now uses the correct fallback font face and its metrics for both allocation and Glyph font_face_height/font_face_ascent. 2. prev_cluster was not reset between runs. Since harfrust cluster values are byte offsets within each run's text, comparing clusters across runs is semantically wrong and could skip extra_letter_spacing at run boundaries (e.g. when both runs start at cluster 0).