Skip to content

Commit

Permalink
Merge pull request #2172 from GyulyVGC/master
Browse files Browse the repository at this point in the history
Added `text_shaping` method to `Tooltip`
  • Loading branch information
hecrj authored Jan 2, 2024
2 parents dd249a1 + 9bbf782 commit 0172cac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions widget/src/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0172cac

Please sign in to comment.