load-font


Keywords
font, graphics, gui, library, ui, user-interfaces, Propose Tags , Graphics.UI.Font.Load
License
BSD-3-Clause
Install
cabal install load-font-0.1.0.2

Documentation

Load Font

This library aims to a cross-platform (Win/Lin/OSX) GUI agnostic way to load a custom font bundled with your Haskell app and is extensively documented on Hackage.

Load Font Demo

Included is a demo that shows off the library, but it is optional and does not build unless you set the demo flag as in the build instructions below.

It builds an executable load-font-exe which uses the FLTKHS GUI framework and bundles the Moon Phases font. It has been tested on Arch Linux, Windows 10 and OSX Sierra.

The demo uses FLTKHS font loading and unloading but it is agnostic to the GUI framework. FLTKHS is used here simply because it’s the easiest to build and install.

This library owes its existence to Albrecht Schlosser’s post on the FLTK mailing list.

To run the demo, clone this repo and do:

> stack build --flag load-font:demo --flag fltkhs:bundled
> stack exec load-font-exe

screenshot-demo.jpg