From d242307b6dbb0d44ac6dace55ac16cbb7108cdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20=C3=96dmark?= Date: Thu, 16 Nov 2023 21:47:41 +0100 Subject: [PATCH] refresh the attrs more often in basic shaping, or colors are not updated correctly --- src/shape.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shape.rs b/src/shape.rs index 53cba574a3..a1a16b879e 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -345,6 +345,7 @@ fn shape_skip( .map(|(i, codepoint)| { let glyph_id = charmap.map(codepoint); let x_advance = glyph_metrics.advance_width(glyph_id); + let attrs = attrs_list.get_span(i); ShapeGlyph { start: i,