font

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct {
	// contains filtered or unexported fields
}

func NewDefault

func NewDefault(options *Options) *Default

func (*Default) Close

func (p *Default) Close() (err error)

func (*Default) Glyph

func (p *Default) Glyph(dot fixed.Point26_6, r rune) (
	dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool)

func (*Default) GlyphAdvance

func (p *Default) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool)

func (*Default) GlyphBounds

func (p *Default) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool)

func (*Default) Kern

func (p *Default) Kern(r0, r1 rune) fixed.Int26_6

func (*Default) Metrics

func (p *Default) Metrics() font.Metrics

type Options

type Options = opentype.FaceOptions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL