Versions in this module Expand all Collapse all v0 v0.1.1 Mar 29, 2024 v0.1.0 Dec 26, 2023 Changes in this version + const DefaultLanguageIndex + const FeatureGlobalEnd + const FeatureGlobalStart + const NoFeatureIndex + const NoScriptIndex + var UniscribeBugCompatible = false + func IsDefaultIgnorable(ch rune) bool + func ParseVariation(s string) (font.Variation, error) + type Buffer struct + ClusterLevel ClusterLevel + Flags ShappingOptions + Info []GlyphInfo + Invisible GID + NotFound GID + Pos []GlyphPosition + Props SegmentProperties + func NewBuffer() *Buffer + func (b *Buffer) AddRune(codepoint rune, cluster int) + func (b *Buffer) AddRunes(text []rune, itemOffset, itemLength int) + func (b *Buffer) Clear() + func (b *Buffer) GuessSegmentProperties() + func (b *Buffer) Reverse() + func (b *Buffer) Shape(font *Font, features []Feature) + type ClusterLevel uint8 + const Characters + const MonotoneCharacters + const MonotoneGraphemes + func (cl ClusterLevel) String() string + type Direction uint8 + const BottomToTop + const LeftToRight + const RightToLeft + const TopToBottom + func (dir Direction) Reverse() Direction + type Face = *font.Face + type Feature struct + End int + Start int + Tag loader.Tag + Value uint32 + func ParseFeature(feature string) (Feature, error) + type Font struct + Ptem float32 + XScale int32 + YScale int32 + func NewFont(face Face) *Font + func (f *Font) ExtentsForDirection(direction Direction) api.FontExtents + func (f *Font) Face() Face + func (f *Font) GetOTLigatureCarets(direction Direction, glyph GID) []Position + func (f *Font) GlyphAdvanceForDirection(glyph GID, dir Direction) (x, y Position) + func (f *Font) GlyphExtents(glyph GID) (out GlyphExtents, ok bool) + func (f *Font) GlyphHAdvance(glyph GID) Position + func (f *Font) SetVarCoordsDesign(coords []float32) + type GID = api.GID + type GlyphExtents struct + Height int32 + Width int32 + XBearing int32 + YBearing int32 + type GlyphInfo struct + Cluster int + Glyph GID + Mask GlyphMask + func (info GlyphInfo) String() string + type GlyphMask = uint32 + const GlyphSafeToInsertTatweel + const GlyphUnsafeToBreak + const GlyphUnsafeToConcat + type GlyphPosition struct + XAdvance Position + XOffset Position + YAdvance Position + YOffset Position + type Position = int32 + type SegmentProperties struct + Direction Direction + Language language.Language + Script language.Script + type ShappingOptions uint16 + const Bot + const DoNotinsertDottedCircle + const Eot + const PreserveDefaultIgnorables + const ProduceSafeToInsertTatweel + const ProduceUnsafeToConcat + const RemoveDefaultIgnorables