Skip to content

Commit e158fb0

Browse files
committed
Enable default_fonts feature for eframe
The project uses eframe with default-features=false, which disables the default_fonts feature. This means FontDefinitions::default() is equivalent to FontDefinitions::empty() — no built-in Latin fonts (Ubuntu-Light, Hack) are available, causing all ASCII/Latin text to be invisible. Add default_fonts to the eframe feature list for both platform targets so the built-in fonts are embedded and Latin text renders.
1 parent f60af3b commit e158fb0

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ md5 = "0.7"
7373
fontdb = "0.23"
7474

7575
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
76-
eframe = { version = "0.31", default-features = false, features = ["glow"] }
76+
eframe = { version = "0.31", default-features = false, features = ["glow", "default_fonts"] }
7777
tray-icon = "0.19"
7878
winit = "0.30"
7979

8080
[target.'cfg(target_os = "linux")'.dependencies]
81-
eframe = { version = "0.31", default-features = false, features = ["glow", "x11", "wayland"] }
81+
eframe = { version = "0.31", default-features = false, features = ["glow", "default_fonts", "x11", "wayland"] }
8282
tray-icon = "0.19"
8383
gtk = "0.18"
8484

0 commit comments

Comments
 (0)