fix(text): draw_with deadlock accessing font system
This commit is contained in:
parent
f0899a2a81
commit
fdf00170c3
1 changed files with 0 additions and 3 deletions
|
|
@ -112,9 +112,6 @@ impl Text {
|
||||||
let buffer = paragraph.buffer();
|
let buffer = paragraph.buffer();
|
||||||
let mut swash_cache = cosmic_text::SwashCache::new();
|
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 run in buffer.layout_runs() {
|
||||||
for glyph in run.glyphs.iter() {
|
for glyph in run.glyphs.iter() {
|
||||||
let physical_glyph = glyph.physical((0.0, 0.0), 1.0);
|
let physical_glyph = glyph.physical((0.0, 0.0), 1.0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue