Skip to content

Commit

Permalink
fix: use Text2d for inmap text
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Dec 27, 2024
1 parent f0571bc commit 8408c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/escher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ fn build_text_tag(
center_y: f32,
font_size: f32,
) -> (
Text,
Text2d,
TextFont,
TextColor,
TextLayout,
Expand All @@ -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),
Expand Down

0 comments on commit 8408c2f

Please sign in to comment.