diff options
author | 2023-05-04 13:00:16 +0200 | |
---|---|---|
committer | 2023-05-04 18:39:31 +0200 | |
commit | 9499a8f9e6f9971dedfae563cb133232aa3cebc2 (patch) | |
tree | 54074dd8b1fc17d63ad92d84b6d2b4415ad29df6 /renderer | |
parent | 8e8808f0e187ed6671441f5016f07bfcba426452 (diff) | |
download | iced-9499a8f9e6f9971dedfae563cb133232aa3cebc2.tar.gz iced-9499a8f9e6f9971dedfae563cb133232aa3cebc2.tar.bz2 iced-9499a8f9e6f9971dedfae563cb133232aa3cebc2.zip |
Support configurable `LineHeight` in text widgets
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/src/backend.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/renderer/src/backend.rs b/renderer/src/backend.rs index 70b146f4..c1bec6af 100644 --- a/renderer/src/backend.rs +++ b/renderer/src/backend.rs @@ -46,6 +46,7 @@ impl backend::Text for Backend { &self, contents: &str, size: f32, + line_height: text::LineHeight, font: Font, bounds: Size, shaping: text::Shaping, @@ -53,7 +54,7 @@ impl backend::Text for Backend { delegate!( self, backend, - backend.measure(contents, size, font, bounds, shaping) + backend.measure(contents, size, line_height, font, bounds, shaping) ) } @@ -61,6 +62,7 @@ impl backend::Text for Backend { &self, contents: &str, size: f32, + line_height: text::LineHeight, font: Font, bounds: Size, shaping: text::Shaping, @@ -73,6 +75,7 @@ impl backend::Text for Backend { backend.hit_test( contents, size, + line_height, font, bounds, shaping, |