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 UseMarkFilteringSet + func LoadHeadTable(ld *loader.Loader, buffer []byte) (tables.Head, []byte, error) + func LoadHmtx(ld *loader.Loader, numGlyphs int) (*tables.Hhea, tables.Hmtx, error) + type AATStateTable struct + func (st *AATStateTable) GetClass(glyph GID) uint16 + func (st *AATStateTable) GetEntry(state, class uint16) tables.AATStateEntry + type Face struct + Coords []tables.Coord + XPpem uint16 + YPpem uint16 + func (f *Face) FontHExtents() (api.FontExtents, bool) + func (f *Face) FontVExtents() (api.FontExtents, bool) + func (f *Face) GlyphData(gid GID) api.GlyphData + func (f *Face) GlyphExtents(glyph GID) (api.GlyphExtents, bool) + func (f *Face) GlyphVOrigin(glyph GID) (x, y int32, found bool) + func (f *Face) HorizontalAdvance(gid GID) float32 + func (f *Face) LineMetric(metric api.LineMetric) float32 + func (f *Face) VerticalAdvance(gid GID) float32 + func (face *Face) SetVariations(variations []Variation) + type Feature struct + Tag Tag + type Font struct + Ankr tables.Ankr + Cmap api.Cmap + Feat tables.Feat + GDEF tables.GDEF + GPOS GPOS + GSUB GSUB + Kern Kernx + Kerx Kernx + Ltag tables.Ltag + Morx Morx + Trak tables.Trak + func NewFont(ld *loader.Loader) (*Font, error) + func (f *Font) GetGlyphContourPoint(glyph GID, pointIndex uint16) (x, y int32, ok bool) + func (f *Font) GlyphHOrigin(GID) (x, y int32, found bool) + func (f *Font) GlyphName(glyph GID) string + func (f *Font) HasVerticalMetrics() bool + func (f *Font) NominalGlyph(ch rune) (GID, bool) + func (f *Font) NormalizeVariations(coords []float32) []VarCoord + func (f *Font) Upem() uint16 + func (f *Font) VariationGlyph(ch, varSelector rune) (GID, bool) + func (font *Font) BitmapSizes() []api.BitmapSize + type GID = api.GID + type GPOS struct + Lookups []GPOSLookup + type GPOSLookup struct + Subtables []tables.GPOSLookup + type GSUB struct + Lookups []GSUBLookup + type GSUBLookup struct + Subtables []tables.GSUBLookup + type Kern0 []tables.Kernx0Record + func (kd Kern0) KernPair(left, right GID) int16 + type Kern1 struct + Machine AATStateTable + Values []int16 + type Kern2 tables.KerxData2 + func (kd Kern2) KernPair(left, right GID) int16 + type Kern3 tables.KernData3 + func (kd Kern3) KernPair(left, right GID) int16 + type Kern4 struct + Anchors tables.KerxAnchors + Machine AATStateTable + func (k Kern4) ActionType() uint8 + type Kern6 tables.KerxData6 + func (kd Kern6) KernPair(left, right GID) int16 + type KernSubtable struct + Data interface{} + IsExtended bool + TupleCount int + func (k KernSubtable) IsBackwards() bool + func (k KernSubtable) IsCrossStream() bool + func (k KernSubtable) IsHorizontal() bool + func (k KernSubtable) IsVariation() bool + type Kernx []KernSubtable + type Layout struct + FeatureVariations []tables.FeatureVariationRecord + Features []Feature + Scripts []Script + func (la *Layout) FindFeatureIndex(featureTag Tag) (uint16, bool) + func (la *Layout) FindScript(script Tag) int + func (la *Layout) FindVariationIndex(coords []VarCoord) int + type LookupOptions struct + Flag uint16 + MarkFilteringSet uint16 + func (lo LookupOptions) Props() uint32 + type Morx []MorxChain + type MorxChain struct + DefaultFlags uint32 + Features []tables.AATFeature + Subtables []MorxSubtable + type MorxContextualSubtable struct + Machine AATStateTable + Substitutions []tables.AATLookup + type MorxInsertionSubtable struct + Insertions []GID + Machine AATStateTable + type MorxLigatureSubtable struct + Components []uint16 + LigatureAction []uint32 + Ligatures []GID + Machine AATStateTable + type MorxNonContextualSubtable struct + Class tables.AATLookup + type MorxRearrangementSubtable AATStateTable + type MorxSubtable struct + Coverage uint8 + Data interface{} + Flags uint32 + type Script struct + Tag Tag + type SimpleKerns interface + KernPair func(left, right GID) int16 + type Tag = loader.Tag + type VarCoord = tables.Coord + type Variation struct + Tag Tag + Value float32