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 )
Click to show internal directories.
Click to hide internal directories.