otat

package
v0.0.0-...-015bfa9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFeatures = "calt,case,zero"

Variables

This section is empty.

Functions

This section is empty.

Types

type FormatError

type FormatError string

A FormatError reports that the input is not a valid TrueType font.

func (FormatError) Error

func (e FormatError) Error() string

type Index

type Index uint16

type Machine

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

func Dummy

func Dummy() *Machine

func New

func New(ttf []byte, script string, features string, autoligatures bool) (*Machine, []string, error)

Script selects the default script to use. Features is a comma separated list of features to enable. If script is the empty string "DFLT", "dflt" and "latn" will be used. If features is the empty string the features specified in DefaultFeatures will be used, if no features should be enabled use "none"

func (*Machine) Describe

func (m *Machine) Describe(w io.Writer)

func (*Machine) Glyph

func (m *Machine) Glyph() (int, rune, rune)

func (*Machine) Next

func (m *Machine) Next() bool

func (*Machine) Reset

func (m *Machine) Reset(in func() (rune, bool))

type UnsupportedError

type UnsupportedError string

An UnsupportedError reports that the input uses a valid but unimplemented TrueType feature.

func (UnsupportedError) Error

func (e UnsupportedError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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