Embed Fira Sans font on Wasm builds by default

This commit is contained in:
Héctor Ramón Jiménez 2024-02-20 03:20:58 +01:00
parent 0c7f4eaab5
commit 35e2049ee6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 18 additions and 1 deletions

View file

@ -18,7 +18,7 @@ all-features = true
maintenance = { status = "actively-developed" }
[features]
default = ["wgpu"]
default = ["wgpu", "fira-sans"]
# Enable the `wgpu` GPU-accelerated renderer backend
wgpu = ["iced_renderer/wgpu", "iced_widget/wgpu"]
# Enables the `Image` widget
@ -53,6 +53,8 @@ highlighter = ["iced_highlighter"]
multi-window = ["iced_winit/multi-window"]
# Enables the advanced module
advanced = []
# Enables embedding Fira Sans as the default font on Wasm builds
fira-sans = ["iced_renderer/fira-sans"]
[dependencies]
iced_core.workspace = true