wumpus-basic-0.13.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.FontLoader.GSFontMap

Description

GhostScript Font map.

GhostScript aliases the Core 14 PostScript fonts to fonts it can freely distribute. This module provides aliases to Wumpus so the font loader can find the equivalent GhostScript files to the Core 14 set.

The data in this file matches GhostScript 8.63. Other versions of GhostScript may need different aliases.

Synopsis

Documentation

ghostscript_version :: StringSource

GhostScript version that the aliases were derived from.

gsMetricsFile :: GSFontMap -> String -> Maybe FilePathSource

Get the .afm metrics file.

Note this return only the file name and not the path to it. The full path must be resolved in client code.

gsFontAlias :: GSFontMap -> String -> Maybe StringSource

Get the GhostScript font name alias.

core14_alias_table :: GSFontMapSource

Map from PostScript font name to the corresponding GhostScript name and file.