package simpleencodings

import "github.com/benoitkugler/textlayout/fonts/simpleencodings"

Simple encodings map a subset of the unicode characters (at most 256) to a set of single bytes. The characters are referenced in fonts by their name, not their Unicode value, so both mappings are provided. PDF use some predefined encodings, defined in this package.

Index

Variables

var AdobeStandard = Encoding{ /* 149 elements not displayed */

}

AdobeStandard is the AdobeStandard encoding.

var MacExpert = Encoding{ /* 165 elements not displayed */

}

MacExpert is the MacExpert encoding.

var MacRoman = Encoding{ /* 223 elements not displayed */

}

MacRoman is the MacRoman encoding.

var Symbol = Encoding{ /* 188 elements not displayed */

}

Symbol is the Symbol encoding.

var WinAnsi = Encoding{ /* 224 elements not displayed */

}

WinAnsi is the WinAnsi encoding.

var ZapfDingbats = Encoding{ /* 188 elements not displayed */

}

ZapfDingbats is the ZapfDingbats encoding.

Types

type Encoding

type Encoding [256]string

Encoding maps a one byte code to a glyph name.

func (Encoding) ByteToRune

func (e Encoding) ByteToRune() map[byte]rune

ByteToRune returns the reverse byte -> rune mapping, using a common name registry.

func (Encoding) NameToByte

func (e Encoding) NameToByte() map[string]byte

NameToByte returns a name to byte map

func (Encoding) NameToRune

func (e Encoding) NameToRune() map[string]rune

NameToRune returns a name to rune map

func (Encoding) RuneToByte

func (e Encoding) RuneToByte() map[rune]byte

RuneToByte returns a rune to byte map

Source Files

MacExpert.go MacRoman.go Standard.go Symbol.go WinAnsi.go ZapfDingbats.go encodings.go

Version
v0.3.1 (latest)
Published
Nov 14, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
5 days ago

Tools for package owners.