cmap

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(name pdf.Name) ([]byte, error)

Types

type CID

type CID uint32

CID represents a character identifier (CID) in a CIDFont. TODO(voss): should this be a uint16?

type CIDEncoder

type CIDEncoder interface {
	Encode(glyph.ID, []rune) []byte
	Encoding() []Record
	CIDSystemInfo() *type1.CIDSystemInfo
}

func NewCIDEncoder

func NewCIDEncoder() CIDEncoder

type Record

type Record struct {
	Code []byte
	CID  CID
	GID  glyph.ID
	Text []rune
}

type SimpleEncoder

type SimpleEncoder interface {
	Encode(glyph.ID, []rune) byte
	Overflow() bool
	Encoding() []glyph.ID
}

func NewSimpleEncoder

func NewSimpleEncoder() SimpleEncoder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL