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

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



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.



data GSFontMap Source

GhostScript version that the aliases were derived from.

ghostscript_version :: String ghostscript_version = gs8.54

A map from standard Adode PostScript font name to the equivalent GhostScript font and AFM file name.

It is expected that all GhostScript AFM files will be located in the same directory.

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.

gsVersionNumber :: GSFontMap -> StringSource

Get the GhostScript version number that the FontMap represents.

ghostscript_fontmap_8_54 :: GSFontMapSource

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

Naming is correct for GhostSCript version 8.54.