fix(text): draw_with deadlock accessing font system

This commit is contained in:
Ashley Wulber 2026-03-11 20:46:06 -04:00 committed by Ashley Wulber
parent f0899a2a81
commit fdf00170c3

View file

@ -112,9 +112,6 @@ impl Text {
let buffer = paragraph.buffer();
let mut swash_cache = cosmic_text::SwashCache::new();
let mut font_system =
text::font_system().write().expect("Write font system");
for run in buffer.layout_runs() {
for glyph in run.glyphs.iter() {
let physical_glyph = glyph.physical((0.0, 0.0), 1.0);