From 99f8c4585a018945416b681a39213c4f2bebd177 Mon Sep 17 00:00:00 2001 From: CGH0S7 Date: Thu, 11 Dec 2025 15:21:18 +0800 Subject: [PATCH] font improved --- config | 4 ++++ waybar/style.css | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config b/config index 021ba37..874ff7c 100644 --- a/config +++ b/config @@ -4,6 +4,10 @@ # # Read `man 5 sway` for a complete reference. +# Set default font for sway and monospace font +font pango:Clear Sans 10 +font pango:Maple Mono NF CN 10 + ### Variables # # Logo key. Use Mod1 for Alt. diff --git a/waybar/style.css b/waybar/style.css index 29b29c5..4859cc4 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -2,7 +2,7 @@ border: none; border-radius: 0; /* 设置全局字体,确保图标显示正常 */ - font-family: "Maple Mono NF CN", "Font Awesome 7 Free", "Font Awesome 7 Brands", "FontAwesome", Roboto, Helvetica, Arial, sans-serif; + font-family: "Clear Sans", "Maple Mono NF CN", "Font Awesome 7 Free", "Font Awesome 7 Brands", "FontAwesome", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 0; }