Skip to content

Commit

Permalink
iced: Set default font
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Aug 8, 2024
1 parent 5537fa4 commit 10d45f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/iced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 10d45f7

Please sign in to comment.