From 9bbf7822e9eae4c7d0b41c2eea14e261119b1d23 Mon Sep 17 00:00:00 2001
From: Giuliano Bellini s294739 <s294739@studenti.polito.it>
Date: Sat, 23 Dec 2023 00:17:10 +0100
Subject: [PATCH] added text::Shaping to Tooltip

---
 widget/src/tooltip.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs
index 9e102c5671..b888980aeb 100644
--- a/widget/src/tooltip.rs
+++ b/widget/src/tooltip.rs
@@ -64,6 +64,12 @@ where
         self
     }
 
+    /// Sets the [`text::Shaping`] strategy of the [`Tooltip`].
+    pub fn text_shaping(mut self, shaping: text::Shaping) -> Self {
+        self.tooltip = self.tooltip.shaping(shaping);
+        self
+    }
+
     /// Sets the font of the [`Tooltip`].
     ///
     /// [`Font`]: Renderer::Font