Portability | portable |
---|---|
Stability | provisional |
Maintainer | libraries@haskell.org |
A collection of FFI declarations for interfacing with Xlib Fonts.
- type Glyph = Word16
- queryFont :: Display -> Font -> IO FontStruct
- fontFromGC :: Display -> GC -> IO Font
- loadQueryFont :: Display -> String -> IO FontStruct
- freeFont :: Display -> FontStruct -> IO ()
- data FontStruct
- fontFromFontStruct :: FontStruct -> Font
- ascentFromFontStruct :: FontStruct -> Int32
- descentFromFontStruct :: FontStruct -> Int32
- type CharStruct = (CInt, CInt, CInt, CInt, CInt)
- textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
- textWidth :: FontStruct -> String -> Int32
Documentation
queryFont :: Display -> Font -> IO FontStructSource
interface to the X11 library function XQueryFont()
.
loadQueryFont :: Display -> String -> IO FontStructSource
interface to the X11 library function XLoadQueryFont()
.
data FontStruct Source
pointer to an X11 XFontStruct
structure
textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)Source
interface to the X11 library function XTextExtents()
.
textWidth :: FontStruct -> String -> Int32Source
interface to the X11 library function XTextWidth()
.