diff options
| author | 2023-05-05 06:38:33 +0200 | |
|---|---|---|
| committer | 2023-05-05 06:38:33 +0200 | |
| commit | 7ae549aba8b5f651a6e7b1a84ddd48288b77f50c (patch) | |
| tree | 54074dd8b1fc17d63ad92d84b6d2b4415ad29df6 /renderer/src | |
| parent | 8e8808f0e187ed6671441f5016f07bfcba426452 (diff) | |
| parent | 9499a8f9e6f9971dedfae563cb133232aa3cebc2 (diff) | |
| download | iced-7ae549aba8b5f651a6e7b1a84ddd48288b77f50c.tar.gz iced-7ae549aba8b5f651a6e7b1a84ddd48288b77f50c.tar.bz2 iced-7ae549aba8b5f651a6e7b1a84ddd48288b77f50c.zip | |
Merge pull request #1828 from iced-rs/feature/line-height
Support configurable `LineHeight` in text widgets
Diffstat (limited to 'renderer/src')
| -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, | 
