vector

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

package font converts an OpenType font into a form usable for engraving.

Index

Constants

View Source
const (
	IndexElemSize = 2 + 2 + 2

	OffSplines = offIndex + indexLen*IndexElemSize
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

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

func NewFace

func NewFace(data []byte) *Face

func (*Face) Decode

func (f *Face) Decode(ch rune) (int, UniformBSpline, bool)

func (*Face) Metrics

func (f *Face) Metrics() Metrics

type Glyph

type Glyph struct {
	Advance    int
	Start, End int
}

type Knot added in v1.4.0

type Knot struct {
	Ctrl bezier.Point
	Line bool
}

type Metrics

type Metrics struct {
	Ascent, Height int
}

type UniformBSpline added in v1.4.0

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

UniformBSpline is an iterator over a glyph's uniform spline.

func (*UniformBSpline) Next added in v1.4.0

func (s *UniformBSpline) Next() (Knot, bool)

Jump to

Keyboard shortcuts

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