opentype-0.1.1: Opentype loading and writing

Safe HaskellNone
LanguageHaskell98

Opentype.Fileformat.Unicode

Contents

Description

Utilities for making it easier to create Tables from Unicode data.

Synopsis

Unicode tables

type UnicodeGlyphMap = HashMap String (Glyph String) Source #

A map from glyphnames to glyphs. Unicode points are derived using nameToCodepoint. Names without matching codepoint can only be used in composite glyphs. If the glyphName has no matching key in the map, it will be substituted by the empty glyph

makeUnicodeFont :: UnicodeGlyphMap -> UnicodeKernPairs -> FontInfo -> OpentypeFont Source #

Create an opentype font from a UnicodeGlyphMap and FontInfo structure.

Postscript Names

codepointName :: CodePoint -> String Source #

Standard name for this codepoint. Will be a descriptive name if one is available, otherwise unihex-codepoint.

postscriptIndex :: String -> Maybe Int Source #

index of the string in the list of standard postscript names, if any.

postscriptName :: Int -> Maybe String Source #

standard postscript name at index, if any.

postscriptNames :: Vector String Source #

vector of standard postscript names.