mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-02 22:17:06 +08:00
19 lines
510 B
Go
19 lines
510 B
Go
/*
|
|
* This file is subject to the terms and conditions defined in
|
|
* file 'LICENSE.md', which is part of this source code package.
|
|
*/
|
|
|
|
package textencoding
|
|
|
|
import "github.com/unidoc/unidoc/pdf/core"
|
|
|
|
type TextEncoder interface {
|
|
Encode(raw string) string
|
|
CharcodeToGlyphName(code byte) (string, bool)
|
|
RuneToCharcode(val rune) (byte, bool)
|
|
RuneToGlyphName(val rune) (string, bool)
|
|
GlyphNameToCharcode(glyph string) (byte, bool)
|
|
CharcodeToRune(charcode byte) (rune, bool)
|
|
ToPdfObject() core.PdfObject
|
|
}
|