diff options
author | 2023-06-28 00:35:37 +0200 | |
---|---|---|
committer | 2023-06-28 00:35:37 +0200 | |
commit | 78ad365db232e53cbdf12105e40c1dbe87a3238c (patch) | |
tree | 4537c725dd9d15ca07d03403d083d3850841654a /graphics/src/backend.rs | |
parent | af62ec1c877d0d6d29277fb7dcfd4c681fd499af (diff) | |
download | iced-78ad365db232e53cbdf12105e40c1dbe87a3238c.tar.gz iced-78ad365db232e53cbdf12105e40c1dbe87a3238c.tar.bz2 iced-78ad365db232e53cbdf12105e40c1dbe87a3238c.zip |
Reuse entries in `text::Cache` in `iced_wgpu`
Diffstat (limited to 'graphics/src/backend.rs')
-rw-r--r-- | graphics/src/backend.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/backend.rs b/graphics/src/backend.rs index 6a082576..70ccc664 100644 --- a/graphics/src/backend.rs +++ b/graphics/src/backend.rs @@ -38,7 +38,7 @@ pub trait Text { font: Font, bounds: Size, shaping: text::Shaping, - ) -> (f32, f32); + ) -> Size; /// Tests whether the provided point is within the boundaries of [`Text`] /// laid out with the given parameters, returning information about |