Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct { // Charstrings contains the actual glyph definition. // It has a length of numGlyphs and is indexed by glyph ID. // See `LoadGlyph` for a way to intepret the glyph data. Charstrings [][]byte // contains filtered or unexported fields }
Font represents a parsed CFF font.
func Parse ¶
Parse parses a .cff font file. Although CFF enables multiple font or CIDFont programs to be bundled together in a single file, embedded CFF font file in PDF or in TrueType/OpenType fonts shall consist of exactly one font or CIDFont. Thus, this function returns an error if the file contains more than one font.
Directories ¶
Path | Synopsis |
---|---|
Package psinterpreter implement a Postscript interpreter required to parse .CFF files, and Type1 and Type2 Charstrings.
|
Package psinterpreter implement a Postscript interpreter required to parse .CFF files, and Type1 and Type2 Charstrings. |
Click to show internal directories.
Click to hide internal directories.