Pure-functional language bindings to FontConfig. Mostly consists of conversions between common Haskell types & FontConfig's imperative C types.
Queries a database of fonts, both in-memory & on the local filesystem, to find the one most closely matching your desired font-family, style, & size.
Cabal can install the rest.
Please see the Haddock documentation for API usage.
Contains a demo program in Main.hs
, which can be run via cabal run
, to query the system font database using standard FontConfig query syntax given in commandline arguments.
There's a tentative expansion with its own testscript which bridges over to Harfbuzz-Pure, & includes a testscript which renders "sphinx of black quartz judge my vow" using the best matching fontfile for your query. This is being held up until a new version of Haskell CSS Syntax is released to Hackage supporting UTF-8 Text.