Versions in this module Expand all Collapse all v0 v0.0.1 Jan 12, 2019 Changes in this version + const NameIDCompatibleFull + const NameIDCopyright + const NameIDDarkBackgroundPalette + const NameIDDescription + const NameIDDesigner + const NameIDDesignerURL + const NameIDFamily + const NameIDFull + const NameIDLicense + const NameIDLicenseURL + const NameIDLightBackgroundPalette + const NameIDManufacturer + const NameIDPostScript + const NameIDPostScriptCID + const NameIDSampleText + const NameIDSubfamily + const NameIDTrademark + const NameIDTypographicFamily + const NameIDTypographicSubfamily + const NameIDUniqueIdentifier + const NameIDVariationsPostScriptPrefix + const NameIDVendorURL + const NameIDVersion + const NameIDWWSFamily + const NameIDWWSSubfamily + var ErrColoredGlyph = errors.New("sfnt: colored glyph") + var ErrNotFound = errors.New("sfnt: not found") + type Buffer struct + type Collection struct + func ParseCollection(src []byte) (*Collection, error) + func ParseCollectionReaderAt(src io.ReaderAt) (*Collection, error) + func (c *Collection) Font(i int) (*Font, error) + func (c *Collection) NumFonts() int + type Font struct + func Parse(src []byte) (*Font, error) + func ParseReaderAt(src io.ReaderAt) (*Font, error) + func (f *Font) Bounds(b *Buffer, ppem fixed.Int26_6, h font.Hinting) (fixed.Rectangle26_6, error) + func (f *Font) GlyphAdvance(b *Buffer, x GlyphIndex, ppem fixed.Int26_6, h font.Hinting) (fixed.Int26_6, error) + func (f *Font) GlyphIndex(b *Buffer, r rune) (GlyphIndex, error) + func (f *Font) GlyphName(b *Buffer, x GlyphIndex) (string, error) + func (f *Font) Kern(b *Buffer, x0, x1 GlyphIndex, ppem fixed.Int26_6, h font.Hinting) (fixed.Int26_6, error) + func (f *Font) LoadGlyph(b *Buffer, x GlyphIndex, ppem fixed.Int26_6, opts *LoadGlyphOptions) ([]Segment, error) + func (f *Font) Metrics(b *Buffer, ppem fixed.Int26_6, h font.Hinting) (font.Metrics, error) + func (f *Font) Name(b *Buffer, id NameID) (string, error) + func (f *Font) NumGlyphs() int + func (f *Font) PostTable() *PostTable + func (f *Font) UnitsPerEm() Units + type GlyphIndex uint16 + type LoadGlyphOptions struct + type NameID uint16 + type PostTable struct + IsFixedPitch bool + ItalicAngle float64 + UnderlinePosition int16 + UnderlineThickness int16 + Version uint32 + type Segment struct + Args [3]fixed.Point26_6 + Op SegmentOp + type SegmentOp uint32 + const SegmentOpCubeTo + const SegmentOpLineTo + const SegmentOpMoveTo + const SegmentOpQuadTo + type Units int32