From 6572909ab5b004176f6d261b67b4caa99f1f54bb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 12 Dec 2024 03:14:40 +0100 Subject: Embed and use Fira Sans as default font when testing --- test/Cargo.toml | 2 +- test/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Cargo.toml b/test/Cargo.toml index f6f4f45a..c63a9e14 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -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 diff --git a/test/src/lib.rs b/test/src/lib.rs index c9096211..232b447e 100644 --- a/test/src/lib.rs +++ b/test/src/lib.rs @@ -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), )); -- cgit