diff options
author | 2024-12-12 03:14:40 +0100 | |
---|---|---|
committer | 2024-12-12 03:15:32 +0100 | |
commit | 6572909ab5b004176f6d261b67b4caa99f1f54bb (patch) | |
tree | 115e8a7d34df5f2089c2ac2fdbddf3f12381b29c /test | |
parent | 7683bd201f156c6e80309584a9bdc205810b0e2e (diff) | |
download | iced-6572909ab5b004176f6d261b67b4caa99f1f54bb.tar.gz iced-6572909ab5b004176f6d261b67b4caa99f1f54bb.tar.bz2 iced-6572909ab5b004176f6d261b67b4caa99f1f54bb.zip |
Embed and use Fira Sans as default font when testing
Diffstat (limited to 'test')
-rw-r--r-- | test/Cargo.toml | 2 | ||||
-rw-r--r-- | test/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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), )); |