cmap

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPredefined added in v0.3.2

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

TODO(voss): use this

func NewFrozenSimpleEncoder added in v0.2.0

func NewFrozenSimpleEncoder(enc SimpleEncoder) frozenSimpleEncoder

Types

type CID

type CID uint32

CID (short for character identifier) gives the index of character in a character collection.

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 Info added in v0.3.3

type Info struct{}

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