Make Font an associated type of text::Renderer
This commit is contained in:
parent
6786b8a3aa
commit
0300b649d7
9 changed files with 45 additions and 23 deletions
|
|
@ -7,6 +7,8 @@ use iced_native::{
|
|||
use std::f32;
|
||||
|
||||
impl text::Renderer for Renderer {
|
||||
type Font = Font;
|
||||
|
||||
const DEFAULT_SIZE: u16 = 20;
|
||||
|
||||
fn measure(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue