X11-1.6.1.2: A binding to the X11 graphics library

Copyright(c) Alastair Reid, 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.X11.Xlib.Font

Description

A collection of FFI declarations for interfacing with Xlib Fonts.

Synopsis

Documentation

queryFont :: Display -> Font -> IO FontStruct Source

interface to the X11 library function XQueryFont().

fontFromGC :: Display -> GC -> IO Font Source

interface to the X11 library function XGetGCValues().

loadQueryFont :: Display -> String -> IO FontStruct Source

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 -> Int32 Source

interface to the X11 library function XTextWidth().