Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + type Alignment uint8 + const End + const Middle + const Start + func (a Alignment) Align(dir system.TextDirection, width fixed.Int26_6, maxWidth int) fixed.Int26_6 + func (a Alignment) String() string + type Flags uint16 + const FlagClusterBreak + const FlagLineBreak + const FlagParagraphBreak + const FlagParagraphStart + const FlagRunBreak + const FlagTowardOrigin + const FlagTruncator + func (f Flags) String() string + type FontFace = giofont.FontFace + type Glyph struct + Advance fixed.Int26_6 + Ascent fixed.Int26_6 + Bounds fixed.Rectangle26_6 + Descent fixed.Int26_6 + Flags Flags + ID GlyphID + Offset fixed.Point26_6 + Runes uint16 + X fixed.Int26_6 + Y int32 + type GlyphID uint64 + type Parameters struct + Alignment Alignment + Font giofont.Font + LineHeight fixed.Int26_6 + LineHeightScale float32 + Locale system.Locale + MaxLines int + MaxWidth int + MinWidth int + PxPerEm fixed.Int26_6 + Truncator string + WrapPolicy WrapPolicy + type Range struct + Count int + Offset int + type Shaper struct + func NewShaper(options ...ShaperOption) *Shaper + func (l *Shaper) Bitmaps(gs []Glyph) op.CallOp + func (l *Shaper) Layout(params Parameters, txt io.Reader) + func (l *Shaper) LayoutString(params Parameters, str string) + func (l *Shaper) NextGlyph() (_ Glyph, ok bool) + func (l *Shaper) Shape(gs []Glyph) clip.PathSpec + type ShaperOption func(*Shaper) + func NoSystemFonts() ShaperOption + func WithCollection(collection []FontFace) ShaperOption + type WrapPolicy uint8 + const WrapGraphemes + const WrapHeuristically + const WrapWords