From 0300b649d7f99bd63494a9672e3a295bca7ec5d7 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 23 Apr 2020 22:17:11 +0200 Subject: Make `Font` an associated type of `text::Renderer` --- native/src/renderer/null.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'native/src/renderer/null.rs') diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index 9033a7da..2c7babdb 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -47,6 +47,8 @@ impl row::Renderer for Null { } impl text::Renderer for Null { + type Font = Font; + const DEFAULT_SIZE: u16 = 20; fn measure( -- cgit