wumpus-basic-0.24.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Safe HaskellSafe-Infered

Wumpus.Basic.System.FontLoader.AfmTopLevel

Description

Top-level AFM V4.1 font loader.

Use this module to build a font loader if you want to work with the Adobe metrics sets, but find the simpleFontLoader in Wumpus.Basic.System.FontLoader too inflexible.

Synopsis

Documentation

loadAfmFontMetrics :: FilePath -> [FontDef] -> IO FontLoadResultSource

loadAfmFontMetrics : path_to_afm_fonts * [font_name] -> IO FontLoadResult

Load the supplied list of fonts.

Note - if a font fails to load a message is written to the log and monospaced fallback metrics are used.

loadAfmFont1 :: FilePath -> FontDef -> IO FontLoadResultSource

loadAfmFont1 : path_to_afm_fonts * font_def -> IO FontLoadResult

Load a single AFM font.

Note - if the font fails to load a message is written to the log and monospaced fallback metrics are used.