Documentation ¶
Index ¶
- Constants
- func ExpandLigatures(runes []rune) string
- func FromFontDifferences(diffList *_f.PdfObjectArray) (map[CharCode]GlyphName, error)
- func GlyphToRune(glyph GlyphName) (rune, bool)
- func RegisterSimpleEncoding(name string, fnc func() SimpleEncoder)
- func RuneToString(r rune) string
- type CMapEncoder
- func (_caed CMapEncoder) CharcodeToRune(code CharCode) (rune, bool)
- func (_afd CMapEncoder) Decode(raw []byte) string
- func (_deb CMapEncoder) Encode(str string) []byte
- func (_bcg CMapEncoder) RuneToCharcode(r rune) (CharCode, bool)
- func (_ag CMapEncoder) String() string
- func (_fff CMapEncoder) ToPdfObject() _f.PdfObject
- type CharCode
- type GID
- type GlyphName
- type IdentityEncoder
- func (_gbe *IdentityEncoder) CharcodeToRune(code CharCode) (rune, bool)
- func (_dfgg *IdentityEncoder) Decode(raw []byte) string
- func (_gab *IdentityEncoder) Encode(str string) []byte
- func (_egc *IdentityEncoder) GlyphToRune(glyph GlyphName) (rune, bool)
- func (_eed *IdentityEncoder) RegisteredRunes() []rune
- func (_cbcc *IdentityEncoder) RuneToCharcode(r rune) (CharCode, bool)
- func (_cdg *IdentityEncoder) RuneToGlyph(r rune) (GlyphName, bool)
- func (_geg *IdentityEncoder) String() string
- func (_dae *IdentityEncoder) ToPdfObject() _f.PdfObject
- type SimpleEncoder
- func ApplyDifferences(base SimpleEncoder, differences map[CharCode]GlyphName) SimpleEncoder
- func NewCustomSimpleTextEncoder(encoding, differences map[CharCode]GlyphName) (SimpleEncoder, error)
- func NewMacExpertEncoder() SimpleEncoder
- func NewMacRomanEncoder() SimpleEncoder
- func NewPdfDocEncoder() SimpleEncoder
- func NewSimpleTextEncoder(baseName string, differences map[CharCode]GlyphName) (SimpleEncoder, error)
- func NewStandardEncoder() SimpleEncoder
- func NewSymbolEncoder() SimpleEncoder
- func NewWinAnsiEncoder() SimpleEncoder
- func NewZapfDingbatsEncoder() SimpleEncoder
- type TextEncoder
- type TrueTypeFontEncoder
- func (_gbd *TrueTypeFontEncoder) CharcodeToRune(code CharCode) (rune, bool)
- func (_fggc *TrueTypeFontEncoder) Decode(raw []byte) string
- func (_gef *TrueTypeFontEncoder) Encode(str string) []byte
- func (_ebc *TrueTypeFontEncoder) GlyphToCharcode(glyph GlyphName) (CharCode, bool)
- func (_cafb *TrueTypeFontEncoder) RegisteredRunes() []rune
- func (_afea *TrueTypeFontEncoder) RuneToCharcode(r rune) (CharCode, bool)
- func (_ggac *TrueTypeFontEncoder) String() string
- func (_bee *TrueTypeFontEncoder) SubsetRegistered()
- func (_cbcd *TrueTypeFontEncoder) ToPdfObject() _f.PdfObject
- type UTF16Encoder
- func (_agd UTF16Encoder) CharcodeToRune(code CharCode) (rune, bool)
- func (_fea UTF16Encoder) Decode(raw []byte) string
- func (_fbfd UTF16Encoder) Encode(str string) []byte
- func (_ceab UTF16Encoder) RuneToCharcode(r rune) (CharCode, bool)
- func (_bcae UTF16Encoder) String() string
- func (_fcd UTF16Encoder) ToPdfObject() _f.PdfObject
Constants ¶
View Source
const ( MissingCodeRune = '\ufffd' MissingCodeString = string(MissingCodeRune) )
Variables ¶
This section is empty.
Functions ¶
func ExpandLigatures ¶
func FromFontDifferences ¶
func FromFontDifferences(diffList *_f.PdfObjectArray) (map[CharCode]GlyphName, error)
func GlyphToRune ¶
func RegisterSimpleEncoding ¶
func RegisterSimpleEncoding(name string, fnc func() SimpleEncoder)
func RuneToString ¶
Types ¶
type CMapEncoder ¶
type CMapEncoder struct {
// contains filtered or unexported fields
}
func NewCMapEncoder ¶
func NewCMapEncoder(baseName string, codeToCID, cidToUnicode *_ebd.CMap) CMapEncoder
func (CMapEncoder) CharcodeToRune ¶
func (_caed CMapEncoder) CharcodeToRune(code CharCode) (rune, bool)
func (CMapEncoder) Decode ¶
func (_afd CMapEncoder) Decode(raw []byte) string
func (CMapEncoder) Encode ¶
func (_deb CMapEncoder) Encode(str string) []byte
func (CMapEncoder) RuneToCharcode ¶
func (_bcg CMapEncoder) RuneToCharcode(r rune) (CharCode, bool)
func (CMapEncoder) String ¶
func (_ag CMapEncoder) String() string
func (CMapEncoder) ToPdfObject ¶
func (_fff CMapEncoder) ToPdfObject() _f.PdfObject
type IdentityEncoder ¶
type IdentityEncoder struct {
// contains filtered or unexported fields
}
func NewIdentityTextEncoder ¶
func NewIdentityTextEncoder(baseName string) *IdentityEncoder
func (*IdentityEncoder) CharcodeToRune ¶
func (_gbe *IdentityEncoder) CharcodeToRune(code CharCode) (rune, bool)
func (*IdentityEncoder) Decode ¶
func (_dfgg *IdentityEncoder) Decode(raw []byte) string
func (*IdentityEncoder) Encode ¶
func (_gab *IdentityEncoder) Encode(str string) []byte
func (*IdentityEncoder) GlyphToRune ¶
func (_egc *IdentityEncoder) GlyphToRune(glyph GlyphName) (rune, bool)
func (*IdentityEncoder) RegisteredRunes ¶
func (_eed *IdentityEncoder) RegisteredRunes() []rune
func (*IdentityEncoder) RuneToCharcode ¶
func (_cbcc *IdentityEncoder) RuneToCharcode(r rune) (CharCode, bool)
func (*IdentityEncoder) RuneToGlyph ¶
func (_cdg *IdentityEncoder) RuneToGlyph(r rune) (GlyphName, bool)
func (*IdentityEncoder) String ¶
func (_geg *IdentityEncoder) String() string
func (*IdentityEncoder) ToPdfObject ¶
func (_dae *IdentityEncoder) ToPdfObject() _f.PdfObject
type SimpleEncoder ¶
type SimpleEncoder interface { TextEncoder BaseName() string Charcodes() []CharCode }
func ApplyDifferences ¶
func ApplyDifferences(base SimpleEncoder, differences map[CharCode]GlyphName) SimpleEncoder
func NewCustomSimpleTextEncoder ¶
func NewCustomSimpleTextEncoder(encoding, differences map[CharCode]GlyphName) (SimpleEncoder, error)
func NewMacExpertEncoder ¶
func NewMacExpertEncoder() SimpleEncoder
func NewMacRomanEncoder ¶
func NewMacRomanEncoder() SimpleEncoder
func NewPdfDocEncoder ¶
func NewPdfDocEncoder() SimpleEncoder
func NewSimpleTextEncoder ¶
func NewSimpleTextEncoder(baseName string, differences map[CharCode]GlyphName) (SimpleEncoder, error)
func NewStandardEncoder ¶
func NewStandardEncoder() SimpleEncoder
func NewSymbolEncoder ¶
func NewSymbolEncoder() SimpleEncoder
func NewWinAnsiEncoder ¶
func NewWinAnsiEncoder() SimpleEncoder
func NewZapfDingbatsEncoder ¶
func NewZapfDingbatsEncoder() SimpleEncoder
type TextEncoder ¶
type TrueTypeFontEncoder ¶
type TrueTypeFontEncoder struct {
// contains filtered or unexported fields
}
func NewTrueTypeFontEncoder ¶
func NewTrueTypeFontEncoder(runeToGIDMap map[rune]GID) *TrueTypeFontEncoder
func (*TrueTypeFontEncoder) CharcodeToRune ¶
func (_gbd *TrueTypeFontEncoder) CharcodeToRune(code CharCode) (rune, bool)
func (*TrueTypeFontEncoder) Decode ¶
func (_fggc *TrueTypeFontEncoder) Decode(raw []byte) string
func (*TrueTypeFontEncoder) Encode ¶
func (_gef *TrueTypeFontEncoder) Encode(str string) []byte
func (*TrueTypeFontEncoder) GlyphToCharcode ¶
func (_ebc *TrueTypeFontEncoder) GlyphToCharcode(glyph GlyphName) (CharCode, bool)
func (*TrueTypeFontEncoder) RegisteredRunes ¶
func (_cafb *TrueTypeFontEncoder) RegisteredRunes() []rune
func (*TrueTypeFontEncoder) RuneToCharcode ¶
func (_afea *TrueTypeFontEncoder) RuneToCharcode(r rune) (CharCode, bool)
func (*TrueTypeFontEncoder) String ¶
func (_ggac *TrueTypeFontEncoder) String() string
func (*TrueTypeFontEncoder) SubsetRegistered ¶
func (_bee *TrueTypeFontEncoder) SubsetRegistered()
func (*TrueTypeFontEncoder) ToPdfObject ¶
func (_cbcd *TrueTypeFontEncoder) ToPdfObject() _f.PdfObject
type UTF16Encoder ¶
type UTF16Encoder struct {
// contains filtered or unexported fields
}
func NewUTF16TextEncoder ¶
func NewUTF16TextEncoder(baseName string) UTF16Encoder
func (UTF16Encoder) CharcodeToRune ¶
func (_agd UTF16Encoder) CharcodeToRune(code CharCode) (rune, bool)
func (UTF16Encoder) Decode ¶
func (_fea UTF16Encoder) Decode(raw []byte) string
func (UTF16Encoder) Encode ¶
func (_fbfd UTF16Encoder) Encode(str string) []byte
func (UTF16Encoder) RuneToCharcode ¶
func (_ceab UTF16Encoder) RuneToCharcode(r rune) (CharCode, bool)
func (UTF16Encoder) String ¶
func (_bcae UTF16Encoder) String() string
func (UTF16Encoder) ToPdfObject ¶
func (_fcd UTF16Encoder) ToPdfObject() _f.PdfObject
Click to show internal directories.
Click to hide internal directories.