chore: Improve Font Rendering on Linux (#100)

* add zed plex sans

* .
This commit is contained in:
reya
2025-07-25 07:20:47 +07:00
committed by GitHub
parent 12168c6084
commit 91cca37d69
20 changed files with 321 additions and 64 deletions

View File

@@ -256,6 +256,7 @@ impl Root {
impl Render for Root {
fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
let base_font_size = cx.theme().font_size;
let font_family = cx.theme().font_family.clone();
window.set_rem_size(base_font_size);
window_border().child(
@@ -263,7 +264,7 @@ impl Render for Root {
.id("root")
.relative()
.size_full()
.font_family(".SystemUIFont")
.font_family(font_family)
.bg(cx.theme().background)
.text_color(cx.theme().text)
.child(self.view.clone()),