Merge pull request #2172 from GyulyVGC/master

Added `text_shaping` method to `Tooltip`
This commit is contained in:
Héctor Ramón 2024-01-02 22:42:26 +01:00 committed by GitHub
commit 0172cac949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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