From 713ed3aca1d5fb23dc9c2a75b1f61fd8bd439e01 Mon Sep 17 00:00:00 2001 From: sumibi-yakitori Date: Mon, 27 Jan 2020 04:28:40 +0900 Subject: Custom fonts can be set in the text input. --- native/src/renderer/null.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'native/src/renderer/null.rs') 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, -- cgit