From 4fcc3fc5f41e042d38440659711b3ee509012e12 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 27 Nov 2024 19:07:23 +0100 Subject: [PATCH] Prepare for follow-on change --- experiments/2024-10-30/src/render/text.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/experiments/2024-10-30/src/render/text.rs b/experiments/2024-10-30/src/render/text.rs index 2afd3b96d..0aecf26d8 100644 --- a/experiments/2024-10-30/src/render/text.rs +++ b/experiments/2024-10-30/src/render/text.rs @@ -77,10 +77,12 @@ impl TextRenderer { ); for op in operations.operations.iter() { + let attrs = glyphon::Attrs::new(); + buffer.lines.push(glyphon::BufferLine::new( format!("{op}"), glyphon::cosmic_text::LineEnding::Lf, - glyphon::AttrsList::new(glyphon::Attrs::new()), + glyphon::AttrsList::new(attrs), glyphon::Shaping::Advanced, )); }