Skip to content

Commit 0172cac

Browse files
authored
Merge pull request #2172 from GyulyVGC/master
Added `text_shaping` method to `Tooltip`
2 parents dd249a1 + 9bbf782 commit 0172cac

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

widget/src/tooltip.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ where
6464
self
6565
}
6666

67+
/// Sets the [`text::Shaping`] strategy of the [`Tooltip`].
68+
pub fn text_shaping(mut self, shaping: text::Shaping) -> Self {
69+
self.tooltip = self.tooltip.shaping(shaping);
70+
self
71+
}
72+
6773
/// Sets the font of the [`Tooltip`].
6874
///
6975
/// [`Font`]: Renderer::Font

0 commit comments

Comments
 (0)