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
|
|
@ -3,7 +3,7 @@ use std::hash::Hash;
|
|||
|
||||
use crate::{
|
||||
input::{mouse, ButtonState},
|
||||
layout, row, text, Align, Clipboard, Element, Event, Font, Hasher,
|
||||
layout, row, text, Align, Clipboard, Element, Event, Hasher,
|
||||
HorizontalAlignment, Layout, Length, Point, Rectangle, Row, Text,
|
||||
VerticalAlignment, Widget,
|
||||
};
|
||||
|
|
@ -186,7 +186,7 @@ where
|
|||
label_layout.bounds(),
|
||||
&self.label,
|
||||
self.text_size,
|
||||
Font::Default,
|
||||
Default::default(),
|
||||
None,
|
||||
HorizontalAlignment::Left,
|
||||
VerticalAlignment::Center,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue