package
0.0.0-20221215031924-bea7fc99139d
Repository: https://github.com/gnaoh1379/unipdf.git
Documentation: pkg.go.dev

# Functions

ApplyDifferences modifies or wraps the base encoding and overlays differences over it.
ExpandLigatures returns `runes` as a string with ligatures expanded.
FromFontDifferences converts `diffList` (a /Differences array from an /Encoding object) to a map representing character code to glyph mappings.
GlyphToRune returns the rune corresponding to glyph `glyph` if there is one.
NewCMapEncoder returns a new CMapEncoder based on the predefined encoding `baseName`.
NewCustomSimpleTextEncoder returns a simpleEncoder based on map `encoding` and difference map `differences`.
NewIdentityTextEncoder returns a new IdentityEncoder based on predefined encoding `baseName` and difference map `differences`.
NewMacExpertEncoder returns a SimpleEncoder that implements MacExpertEncoding.
NewMacRomanEncoder returns a SimpleEncoder that implements MacRomanEncoding.
NewPdfDocEncoder returns a SimpleEncoder that implements PdfDocEncoding.
NewSimpleTextEncoder returns a simpleEncoder based on predefined encoding `baseName` and difference map `differences`.
NewStandardEncoder returns a SimpleEncoder that implements StandardEncoding.
NewSymbolEncoder returns a SimpleEncoder that implements SymbolEncoding.
NewTrueTypeFontEncoder creates a new text encoder for TTF fonts with a runeToGlyphIndexMap that has been preloaded from the font file.
NewUTF16TextEncoder returns a new UTF16Encoder based on the predefined encoding `baseName`.
NewWinAnsiEncoder returns a simpleEncoder that implements WinAnsiEncoding.
NewZapfDingbatsEncoder returns a SimpleEncoder that implements ZapfDingbatsEncoding.
RegisterSimpleEncoding registers a SimpleEncoder constructer by PDF encoding name.
RuneToGlyph is the reverse of the table lookups in GlyphToRune.
RuneToString converts rune `r` to a string.

# Constants

�.
MissingCodeString replaces strings that can't be decoded.

# Structs

CMapEncoder encodes/decodes strings based on CMap mappings.
IdentityEncoder represents an 2-byte identity encoding.
TrueTypeFontEncoder handles text encoding for composite TrueType fonts.
UTF16Encoder represents UTF-16 encoding.

# Interfaces

SimpleEncoder represents a 1 byte encoding.
TextEncoder defines the common methods that a text encoder implementation must have in UniDoc.

# Type aliases

CharCode is a character code used in the specific encoding.
GID is a glyph index.
GlyphName is a name of a glyph.