diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/backend.rs | 2 | ||||
-rw-r--r-- | graphics/src/renderer.rs | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/graphics/src/renderer.rs b/graphics/src/renderer.rs index 4241d45c..7e70a766 100644 --- a/graphics/src/renderer.rs +++ b/graphics/src/renderer.rs @@ -133,7 +133,7 @@ where font: Font, bounds: Size, shaping: text::Shaping, - ) -> (f32, f32) { + ) -> Size { self.backend().measure( content, size, |