diff options
| author | 2020-01-27 04:28:40 +0900 | |
|---|---|---|
| committer | 2020-01-27 04:28:40 +0900 | |
| commit | 713ed3aca1d5fb23dc9c2a75b1f61fd8bd439e01 (patch) | |
| tree | 52686a0017b002fc7ccf93d01d43f467888488d3 /native/src/renderer | |
| parent | 0bdf1f23b5ab4348cccb295fcc4e9b00a65e772a (diff) | |
| download | iced-713ed3aca1d5fb23dc9c2a75b1f61fd8bd439e01.tar.gz iced-713ed3aca1d5fb23dc9c2a75b1f61fd8bd439e01.tar.bz2 iced-713ed3aca1d5fb23dc9c2a75b1f61fd8bd439e01.zip | |
Custom fonts can be set in the text input.
Diffstat (limited to 'native/src/renderer')
| -rw-r--r-- | native/src/renderer/null.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index 3e02e73a..2e0b6f32 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -109,7 +109,7 @@ impl text_input::Renderer for Null {          20      } -    fn measure_value(&self, _value: &str, _size: u16) -> f32 { +    fn measure_value(&self, _value: &str, _size: u16, _font: Font) -> f32 {          0.0      } @@ -119,6 +119,7 @@ impl text_input::Renderer for Null {          _size: u16,          _value: &text_input::Value,          _state: &text_input::State, +        _font: Font,      ) -> f32 {          0.0      } @@ -129,6 +130,7 @@ impl text_input::Renderer for Null {          _text_bounds: Rectangle,          _cursor_position: Point,          _size: u16, +        _font: Font,          _placeholder: &str,          _value: &text_input::Value,          _state: &text_input::State, | 
