Embed and use Fira Sans as default font when testing
This commit is contained in:
parent
7683bd201f
commit
6572909ab5
9 changed files with 12 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ iced_runtime.workspace = true
|
|||
iced_tiny_skia.workspace = true
|
||||
|
||||
iced_renderer.workspace = true
|
||||
iced_renderer.features = ["tiny-skia"]
|
||||
iced_renderer.features = ["tiny-skia", "fira-sans"]
|
||||
|
||||
png.workspace = true
|
||||
sha2.workspace = true
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ pub fn interface<'a, Message, Theme>(
|
|||
let size = Size::new(512.0, 512.0);
|
||||
|
||||
let mut renderer = Renderer::Secondary(tiny_skia::Renderer::new(
|
||||
Font::default(),
|
||||
Font::with_name("Fira Sans"),
|
||||
Pixels(16.0),
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue