From 8408c2fda7cddaed44dc3af5f6dc9d645e23b710 Mon Sep 17 00:00:00 2001 From: carrascomj Date: Sat, 28 Dec 2024 00:53:10 +0100 Subject: [PATCH] fix: use Text2d for inmap text --- src/escher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/escher.rs b/src/escher.rs index dd2fd00..0255e6a 100644 --- a/src/escher.rs +++ b/src/escher.rs @@ -304,7 +304,7 @@ fn build_text_tag( center_y: f32, font_size: f32, ) -> ( - Text, + Text2d, TextFont, TextColor, TextLayout, @@ -313,7 +313,7 @@ fn build_text_tag( DefaultFontSize, ) { let pos = node.label_position(); - let text = Text(node.id()); + let text = Text2d(node.id()); ( text, TextFont::from_font(font).with_font_size(font_size),