Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen 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 = GSFontMap {}
- gsMetricsFile :: GSFontMap -> String -> Maybe FilePath
- gsFontAlias :: GSFontMap -> String -> Maybe String
- gsVersionNumber :: GSFontMap -> String
- ghostscript_fontmap_8_54 :: GSFontMap
Documentation
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.
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.