Versions in this module Expand all Collapse all v0 v0.0.1 Mar 16, 2024 Changes in this version + var DefaultFeatures = []Feature + var DefaultOptions = Options + type Face struct + func NewFace(data []byte) *Face + func NewFaceFromFile(filename string) *Face + func (f *Face) Close() error + type Feature = hb.Feature + func ContextualAlternatives() Feature + func DiscretionaryLigatures() Feature + func Fractions() Feature + func JustificationAlternatives() Feature + func OldStyle() Feature + func Ordinals() Feature + func Ornaments() Feature + func StandardLigatures() Feature + func StylisticAlternatives() Feature + func Swash() Feature + func TitlingAlternatives() Feature + type Font struct + func NewFont(face *Face, size int32) *Font + func (f *Font) Close() error + func (f *Font) Extents() (FontExtents, bool) + func (f *Font) SetSize(size int32) + func (f *Font) Size() int32 + type FontExtents = hb.FontExtents + type Options struct + Bidi bool + Features []Feature + type Writer struct + func NewWriter(font *Font, text string, opts Options) (w *Writer, err error) + func (w *Writer) Advance() int32 + func (w *Writer) Bounds() image.Rectangle + func (w *Writer) Close() error + func (w *Writer) Write(img draw.Image, at image.Point, color image.Image)