summaryrefslogtreecommitdiffhomepage
path: root/doc/compiling.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-12 04:01:51 +0100
committerjao <jao@gnu.org>2022-09-12 04:01:51 +0100
commit15c373076dec81c3245e42250512dea6a75db5e9 (patch)
treec10be286b9e477137a53b4b63fe4148be7f0f6c1 /doc/compiling.org
parenteaf2be9bbcf1b0597a52b14d28e0252ec4714bee (diff)
downloadxmobar-15c373076dec81c3245e42250512dea6a75db5e9.tar.gz
xmobar-15c373076dec81c3245e42250512dea6a75db5e9.tar.bz2
cairo: with_xft deprecated, with_cairo synomym
Diffstat (limited to 'doc/compiling.org')
-rw-r--r--doc/compiling.org19
1 files changed, 13 insertions, 6 deletions
diff --git a/doc/compiling.org b/doc/compiling.org
index b4159df..dabcec6 100644
--- a/doc/compiling.org
+++ b/doc/compiling.org
@@ -57,20 +57,27 @@ them to =stack= directly:
- =with_threaded= Uses GHC's threaded runtime. Use this option if xmobar
enters a high-CPU regime right after starting.
- - =with_utf8= UTF-8 support. Requires the [[http://hackage.haskell.org/package/utf8-string/][utf8-string]] package.
+ - =with_xft= Antialiased font support. Deprecated: use =with_cairo= instead.
- - =with_xft= Antialiased fonts. Requires the [[http://hackage.haskell.org/package/X11-xft/][X11-xft]] package. This
- option automatically enables UTF-8. To use XFT fonts you need to use
- the =xft:= prefix in the =font= configuration option. For instance:
+ - =with_cairo= Antialiased fonts via Cairo/Pango. Requires the [[http://hackage.haskell.org/package/X11-xft/][X11-xft]]
+ package. This option automatically enables UTF-8. To use XFT fonts you
+ can use their fontconfig name, e.g
#+begin_src haskell
- font = "xft:Times New Roman-10:italic"
+ font = "Iosevka Medium 10"
+ font = "DejaVu Sans Mono italic 9"
#+end_src
Or to have fallback fonts, just separate them by commas:
#+begin_src haskell
- font = "xft:Open Sans:size=9,WenQuanYi Zen Hei:size=9"
+ font = "Open Sans,WenQuanYi Zen Hei 9"
+ #+end_src
+
+ For backwards compatibility, font names with `xft:` are also supported.
+
+ #+begin_src haskell
+ font = "xft:DejaVu Sans Mono-10"
#+end_src
- =with_mpd= Enables support for the [[http://mpd.wikia.com/][MPD]] daemon. Requires the [[http://hackage.haskell.org/package/libmpd/][libmpd]]