iced: Set default font
This commit is contained in:
parent
5537fa4822
commit
10d45f7134
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ use cosmic::{
|
|||
window::{Event as WindowEvent, Id},
|
||||
Command, Limits, Point as IcedPoint, Rectangle as IcedRectangle, Size as IcedSize,
|
||||
},
|
||||
iced_core::{clipboard::Null as NullClipboard, renderer::Style, Color, Font, Length, Pixels},
|
||||
iced_core::{clipboard::Null as NullClipboard, renderer::Style, Color, Length, Pixels},
|
||||
iced_renderer::graphics::Renderer as IcedGraphicsRenderer,
|
||||
iced_runtime::{
|
||||
command::Action,
|
||||
|
|
@ -180,7 +180,7 @@ impl<P: Program + Send + Clone + 'static> Clone for IcedElementInternal<P> {
|
|||
}
|
||||
let mut renderer = cosmic::Renderer::TinySkia(IcedGraphicsRenderer::new(
|
||||
Backend::new(),
|
||||
Font::default(),
|
||||
cosmic::font::DEFAULT,
|
||||
Pixels(16.0),
|
||||
));
|
||||
let mut debug = Debug::new();
|
||||
|
|
@ -246,7 +246,7 @@ impl<P: Program + Send + 'static> IcedElement<P> {
|
|||
let size = size.into();
|
||||
let mut renderer = cosmic::Renderer::TinySkia(IcedGraphicsRenderer::new(
|
||||
Backend::new(),
|
||||
Font::default(),
|
||||
cosmic::font::DEFAULT,
|
||||
Pixels(16.0),
|
||||
));
|
||||
let mut debug = Debug::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue