codepointtext

package
v0.0.0-...-19eda46 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodepointText

type CodepointText struct {
	Text   string
	Face   harfbuzz.Face
	Font   *harfbuzz.Font
	Buffer *harfbuzz.Buffer

	CodePoints string
	Bidi       Direction
	// contains filtered or unexported fields
}

func (*CodepointText) GetCodePointText

func (co *CodepointText) GetCodePointText() string

convert text to codepoint

func (*CodepointText) Init

func (co *CodepointText) Init(fontFile string)

setup up harfbuzz font,face,buffer

type Direction

type Direction int
const (
	// LeftToRight indicates the text contains no right-to-left characters and
	// that either there are some left-to-right characters or the option
	// DefaultDirection(LeftToRight) was passed.
	LeftToRight Direction = iota

	// RightToLeft indicates the text contains no left-to-right characters and
	// that either there are some right-to-left characters or the option
	// DefaultDirection(RightToLeft) was passed.
	RightToLeft

	// Mixed indicates text contains both left-to-right and right-to-left
	// characters.
	Mixed

	// Neutral means that text contains no left-to-right and right-to-left
	// characters and that no default direction has been set.
	Neutral
)

Jump to

Keyboard shortcuts

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