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 ¶
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.
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 ¶
ByteToRune returns the reverse byte -> rune mapping, using a common name registry.
func (Encoding) NameToByte ¶
NameToByte returns a name to byte map
func (Encoding) NameToRune ¶
NameToRune returns a name to rune map
func (Encoding) RuneToByte ¶
RuneToByte returns a rune to byte map