X11-1.5.0.0: A binding to the X11 graphics library

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org

Graphics.X11.Xlib.Font

Description

A collection of FFI declarations for interfacing with Xlib Fonts.

Synopsis

Documentation

queryFont :: Display -> Font -> IO FontStructSource

interface to the X11 library function XQueryFont().

fontFromGC :: Display -> GC -> IO FontSource

interface to the X11 library function XGetGCValues().

loadQueryFont :: Display -> String -> IO FontStructSource

interface to the X11 library function XLoadQueryFont().

freeFont :: Display -> FontStruct -> IO ()Source

interface to the X11 library function XFreeFont().

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().