| X11 Libraries (X11 package) | Contents | Index

Graphics.X11.Xlib.Font

Portability | portable
Stability | provisional
Maintainer | libraries@haskell.org

Description
A collection of FFI declarations for interfacing with Xlib Fonts.
Synopsis

type Glyph = Word16
queryFont :: Display -> Font -> IO FontStruct
fontFromGC :: Display -> GC -> IO Font
loadQueryFont :: Display -> String -> IO FontStruct
freeFont :: Display -> FontStruct -> IO ()
fontFromFontStruct :: FontStruct -> Font
ascentFromFontStruct :: FontStruct -> Int32
descentFromFontStruct :: FontStruct -> Int32
type CharStruct = (Int, Int, Int, Int, Int)
textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
textWidth :: FontStruct -> String -> Int32

Documentation
type Glyph = Word16
queryFont :: Display -> Font -> IO FontStruct
interface to the X11 library function `XQueryFont()`.
fontFromGC :: Display -> GC -> IO Font
interface to the X11 library function `XGetGCValues()`.
loadQueryFont :: Display -> String -> IO FontStruct
interface to the X11 library function `XLoadQueryFont()`.
freeFont :: Display -> FontStruct -> IO ()
interface to the X11 library function `XFreeFont()`.
fontFromFontStruct :: FontStruct -> Font
ascentFromFontStruct :: FontStruct -> Int32
descentFromFontStruct :: FontStruct -> Int32
type CharStruct = (Int, Int, Int, Int, Int)
textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
interface to the X11 library function `XTextExtents()`.
textWidth :: FontStruct -> String -> Int32
interface to the X11 library function `XTextWidth()`.
Produced by Haddock version 0.7