aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util/XUtils.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2008-03-02 10:57:12 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2008-03-02 10:57:12 +0100
commit1085043f0ceb4a3f76e7fed3f9ddd0f2b59cb6c5 (patch)
treeac0600f88d017b024c50f43251ebdfff7363e496 /XMonad/Util/XUtils.hs
parente832f8bfa00a9e1c094604ccaea9aa38ceed2bc9 (diff)
downloadXMonadContrib-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/Util/XUtils.hs')
-rw-r--r--XMonad/Util/XUtils.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/XMonad/Util/XUtils.hs b/XMonad/Util/XUtils.hs
index aff7b4b..c72bd79 100644
--- a/XMonad/Util/XUtils.hs
+++ b/XMonad/Util/XUtils.hs
@@ -117,7 +117,8 @@ paintAndWrite :: Window -- ^ The window where to draw
-> String -- ^ String to be printed
-> X ()
paintAndWrite w fs wh ht bw bc borc ffc fbc al str = do
- (x,y) <- stringPosition fs (Rectangle 0 0 wh ht) al str
+ d <- asks display
+ (x,y) <- stringPosition d fs (Rectangle 0 0 wh ht) al str
paintWindow' w (Rectangle x y wh ht) bw bc borc ms
where ms = Just (fs,ffc,fbc,str)