simpleencodings

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT, MIT Imports: 1 Imported by: 2

Documentation

Overview

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

Constants

This section is empty.

Variables

View Source
var AdobeStandard = Encoding{}/* 149 elements not displayed */

AdobeStandard is the AdobeStandard encoding.

View Source
var MacExpert = Encoding{}/* 165 elements not displayed */

MacExpert is the MacExpert encoding.

View Source
var MacRoman = Encoding{}/* 223 elements not displayed */

MacRoman is the MacRoman encoding.

View Source
var Symbol = Encoding{}/* 188 elements not displayed */

Symbol is the Symbol encoding.

View Source
var WinAnsi = Encoding{}/* 224 elements not displayed */

WinAnsi is the WinAnsi encoding.

View Source
var ZapfDingbats = Encoding{}/* 188 elements not displayed */

ZapfDingbats is the ZapfDingbats encoding.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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