xmonad-contrib-bluetilebranch-0.9.1.4: Third party extensions for xmonad

Portabilityunportable
Stabilityunstable
Maintainerandrea.rossato@unibz.it

XMonad.Util.Font

Contents

Description

A module for abstracting a font facility over Core fonts and Xft

Synopsis

Usage:

See Xmonad.Layout.Tabbed or XMonad.Prompt for usage examples

initXMF :: String -> X XMonadFontSource

When initXMF gets a font name that starts with 'xft:' it switches to the Xft backend Example: 'xft: Sans-10'

initCoreFont :: String -> X FontStructSource

Given a fontname returns the font structure. If the font name is not valid the default font will be loaded and returned.

data Align Source

String position

Instances

stringPosition :: (Functor m, MonadIO m) => Display -> XMonadFont -> Rectangle -> Align -> String -> m (Position, Position)Source

Return the string x and y Position in a Rectangle, given a FontStruct and the Alignment

stringToPixel :: (Functor m, MonadIO m) => Display -> String -> m PixelSource

Get the Pixel value for a named color: if an invalid name is given the black pixel will be returned.