X11-1.6.1.1: A binding to the X11 graphics library

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellNone

Graphics.X11.Xlib.Font

Description

A collection of FFI declarations for interfacing with Xlib Fonts.

Synopsis

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

data FontStruct

pointer to an X11 XFontStruct structure

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