Versions in this module Expand all Collapse all v0 v0.0.1 Oct 26, 2021 Changes in this version + const NameIDCompatibleName + const NameIDCopyright + const NameIDDesignerName + const NameIDFontDescription + const NameIDFontDesignerURL + const NameIDFontFamily + const NameIDFontFullName + const NameIDFontLicense + const NameIDFontLicenseURL + const NameIDFontSubfamily + const NameIDFontVendorURL + const NameIDManufacturerName + const NameIDNameTableVersion + const NameIDPostscriptName + const NameIDPreferredFamily + const NameIDPreferredSubfamily + const NameIDSampleText + const NameIDTrademarkNotice + const NameIDUniqueSubfamilyID + func NewFace(f *Font, opts *Options) font.Face + type Font struct + func Parse(ttf []byte) (font *Font, err error) + func (f *Font) Bounds(scale fixed.Int26_6) fixed.Rectangle26_6 + func (f *Font) FUnitsPerEm() int32 + func (f *Font) HMetric(scale fixed.Int26_6, i Index) HMetric + func (f *Font) Index(x rune) Index + func (f *Font) Kern(scale fixed.Int26_6, i0, i1 Index) fixed.Int26_6 + func (f *Font) Name(id NameID) string + func (f *Font) VMetric(scale fixed.Int26_6, i Index) VMetric + type FormatError string + func (e FormatError) Error() string + type GlyphBuf struct + AdvanceWidth fixed.Int26_6 + Bounds fixed.Rectangle26_6 + Ends []int + InFontUnits []Point + Points []Point + Unhinted []Point + func (g *GlyphBuf) Load(f *Font, scale fixed.Int26_6, i Index, h font.Hinting) error + type HMetric struct + AdvanceWidth fixed.Int26_6 + LeftSideBearing fixed.Int26_6 + type Index uint16 + type NameID uint16 + type Options struct + DPI float64 + GlyphCacheEntries int + Hinting font.Hinting + Size float64 + SubPixelsX int + SubPixelsY int + type Point struct + Flags uint32 + X fixed.Int26_6 + Y fixed.Int26_6 + type UnsupportedError string + func (e UnsupportedError) Error() string + type VMetric struct + AdvanceHeight fixed.Int26_6 + TopSideBearing fixed.Int26_6