added text::Shaping to Tooltip

This commit is contained in:
Giuliano Bellini s294739 2023-12-23 00:17:10 +01:00
parent dd249a1d11
commit 9bbf7822e9

View file

@ -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