Lower text::Renderer's Font bound from Copy to Clone
This commit is contained in:
parent
a7bcd65bb8
commit
d06e6bfb51
8 changed files with 25 additions and 24 deletions
|
|
@ -157,7 +157,7 @@ where
|
|||
)
|
||||
.push(
|
||||
Text::new(&self.label)
|
||||
.font(self.font)
|
||||
.font(self.font.clone())
|
||||
.width(self.width)
|
||||
.size(self.text_size.unwrap_or(renderer.default_size())),
|
||||
)
|
||||
|
|
@ -261,7 +261,7 @@ where
|
|||
style,
|
||||
label_layout,
|
||||
&self.label,
|
||||
self.font,
|
||||
self.font.clone(),
|
||||
self.text_size,
|
||||
self.text_color.or(Some(custom_style.text_color)),
|
||||
alignment::Horizontal::Left,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue