xmobar/xmobar-xft-fonts.patch
2018-07-23 15:22:43 +09:00

33 lines
1.4 KiB
Diff

--- xmobar-0.27/samples/xmobar.config.fonts 2018-07-12 09:16:27.000000000 +0900
+++ xmobar-0.27/samples/xmobar.config 2018-07-23 00:20:59.630748923 +0900
@@ -1,4 +1,4 @@
-Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+Config { font = "xft:mono-12"
, additionalFonts = []
, borderColor = "black"
, border = TopB
diff -up xmobar-0.27/src/Config.hs.fonts xmobar-0.27/src/Config.hs
--- xmobar-0.27/src/Config.hs.fonts 2018-07-23 00:20:59.630748923 +0900
+++ xmobar-0.27/src/Config.hs 2018-07-23 00:23:47.885897344 +0900
@@ -113,7 +113,7 @@ data Border = NoBorder
-- | The default configuration values
defaultConfig :: Config
defaultConfig =
- Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+ Config { font = "xft:mono-12"
, additionalFonts = []
, wmClass = "xmobar"
, wmName = "xmobar"
diff -up xmobar-0.27/src/XUtil.hsc.fonts xmobar-0.27/src/XUtil.hsc
--- xmobar-0.27/src/XUtil.hsc.fonts 2018-07-12 09:16:27.000000000 +0900
+++ xmobar-0.27/src/XUtil.hsc 2018-07-23 00:20:59.631748929 +0900
@@ -98,7 +98,7 @@ initFont d s =
#endif
miscFixedFont :: String
-miscFixedFont = "-misc-fixed-*-*-*-*-*-*-*-*-*-*-*-*"
+miscFixedFont = "-misc-fixed-*-*-*-*-13-*-*-*-*-*-*-*"
-- | Given a fontname returns the font structure. If the font name is
-- not valid the default font will be loaded and returned.