diff options
author | Andrea Rossato <andrea.rossato@unibz.it> | 2008-03-02 10:57:12 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@unibz.it> | 2008-03-02 10:57:12 +0100 |
commit | 1085043f0ceb4a3f76e7fed3f9ddd0f2b59cb6c5 (patch) | |
tree | ac0600f88d017b024c50f43251ebdfff7363e496 /xmonad-contrib.cabal | |
parent | e832f8bfa00a9e1c094604ccaea9aa38ceed2bc9 (diff) | |
download | XMonadContrib-1085043f0ceb4a3f76e7fed3f9ddd0f2b59cb6c5.tar.gz XMonadContrib-1085043f0ceb4a3f76e7fed3f9ddd0f2b59cb6c5.tar.xz XMonadContrib-1085043f0ceb4a3f76e7fed3f9ddd0f2b59cb6c5.zip |
Font and XUtils: add UTF-8 support and various fixes related to XFT
- printStringXMF: use the background color for XFT fonts too
- textWidthXMF now returns the text width even with xft fonts
- textExtentsXMF will now return only the ascend and the descent of a
string.
- stringPosition now takes the display too
- add support for UTF-8 locales: if the contrib library is compiled
with the 'with_xft' or the 'with_utf8' option the prompt and the
decoration system will support UTF-8 locales - this requires
utf8-strings.
darcs-hash:20080302095712-32816-f3d6d06ff9d921288b1625e4bfd643013d2075ec.gz
Diffstat (limited to 'xmonad-contrib.cabal')
-rw-r--r-- | xmonad-contrib.cabal | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmonad-contrib.cabal b/xmonad-contrib.cabal index dcd0da2..1fb5420 100644 --- a/xmonad-contrib.cabal +++ b/xmonad-contrib.cabal @@ -34,6 +34,9 @@ flag small_base flag use_xft description: Use Xft to render text +flag with_utf8 + description: Enable Utf8 support + flag testing description: Testing mode default: False @@ -45,9 +48,15 @@ library build-depends: base < 3 if flag(use_xft) - build-depends: X11-xft >= 0.2 + build-depends: X11-xft >= 0.2, utf8-string + extensions: ForeignFunctionInterface cpp-options: -DXFT + if flag(with_utf8) + build-depends: utf8-string + extensions: ForeignFunctionInterface + cpp-options: -DUTF8 + build-depends: mtl, unix, X11>=1.4.1, xmonad==0.6 ghc-options: -Wall |