fontconfig-pure-0.5.1.0: Queries your system (Linux/BSD/etc) font database.
Safe HaskellNone
LanguageHaskell2010

Graphics.Text.Font.Choose.Config

Description

Load system fonts configuration.

Synopsis

Documentation

type Config = ForeignPtr Config' Source #

holds the internal representation of a configuration.

fini :: IO () Source #

Closes FontConfig's database connection.

version :: Int Source #

Returns the version number of the library.

initLoadConfig :: IO Config Source #

Loads the default configuration file and returns the resulting configuration. Does not load any font information.

initLoadConfigAndFonts :: IO Config Source #

Loads the default configuration file and builds information about the available fonts. Returns the resulting configuration.

initFonts :: IO () Source #

Loads the default configuration file and the fonts referenced therein and sets the default configuration to that result. Returns whether this process succeeded or not. If the default configuration has already been loaded, this routine does nothing and returns True.

reinit :: IO () Source #

Forces the default configuration file to be reloaded and resets the default configuration. Returns False if the configuration cannot be reloaded (due to configuration file errors, allocation failures or other issues) and leaves the existing configuration unchanged. Otherwise returns True.

bringUptoDate :: IO () Source #

Checks the rescan interval in the default configuration, checking the configuration if the interval has passed and reloading the configuration if when any changes are detected. Returns False if the configuration cannot be reloaded (see reinit). Otherwise returns True.

data Config' Source #

Internal placeholder underlying Config.

fcConfigDestroy :: FunPtr (Ptr Config' -> IO ()) Source #

Internal ForeignPtr destructor for Config.