Documentation ¶
Index ¶
Constants ¶
View Source
const ( NameIndex mainIndex = iota DictIndex StringIndex GlobalSubrIndex CharSet Encoding CharStringsIndex PrivateDict LocalSubrsIndex )
Index tables
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFF ¶
type CFF struct { Major uint8 Minor uint8 HdrSize uint8 Fontindex int Font []*Font // contains filtered or unexported fields }
CFF represents a CFF font file
func ParseCFFData ¶
func ParseCFFData(r io.ReadSeeker) (*CFF, error)
ParseCFFData interprets the CFF data and returns an error or nil.
func (*CFF) GetRawIndexData ¶
func (c *CFF) GetRawIndexData(r io.ReadSeeker, index mainIndex) ([]byte, error)
GetRawIndexData returns a byte slice of the index
type Font ¶
type Font struct { CharStrings [][]byte // contains filtered or unexported fields }
Font is a CFF font instance. There can be more than one CFF font in a font file.
func (*Font) GetRawIndexData ¶
func (f *Font) GetRawIndexData(r io.ReadSeeker, index mainIndex) ([]byte, error)
GetRawIndexData returns a byte slice of the index
Click to show internal directories.
Click to hide internal directories.