Make Font an associated type of text::Renderer

This commit is contained in:
Héctor Ramón Jiménez 2020-04-23 22:17:11 +02:00
parent 6786b8a3aa
commit 0300b649d7
9 changed files with 45 additions and 23 deletions

View file

@ -47,6 +47,8 @@ impl row::Renderer for Null {
}
impl text::Renderer for Null {
type Font = Font;
const DEFAULT_SIZE: u16 = 20;
fn measure(