summaryrefslogtreecommitdiffstats
path: root/wgpu/src/layer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-05-05 06:38:33 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-05 06:38:33 +0200
commit7ae549aba8b5f651a6e7b1a84ddd48288b77f50c (patch)
tree54074dd8b1fc17d63ad92d84b6d2b4415ad29df6 /wgpu/src/layer
parent8e8808f0e187ed6671441f5016f07bfcba426452 (diff)
parent9499a8f9e6f9971dedfae563cb133232aa3cebc2 (diff)
downloadiced-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 'wgpu/src/layer')
-rw-r--r--wgpu/src/layer/text.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/wgpu/src/layer/text.rs b/wgpu/src/layer/text.rs
index 665f7188..ba1bdca8 100644
--- a/wgpu/src/layer/text.rs
+++ b/wgpu/src/layer/text.rs
@@ -14,9 +14,12 @@ pub struct Text<'a> {
/// The color of the [`Text`], in __linear RGB_.
pub color: Color,
- /// The size of the [`Text`].
+ /// The size of the [`Text`] in logical pixels.
pub size: f32,
+ /// The line height of the [`Text`].
+ pub line_height: text::LineHeight,
+
/// The font of the [`Text`].
pub font: Font,