anchor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package anchor encodes and decodes OpenType "Anchor Tables".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	X, Y funit.Int16
}

Table is an OpenType "Anchor Table". https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#anchor-tables

func Read

func Read(p *parser.Parser, pos int64) (Table, error)

Read reads an anchor table from the given parser.

func (Table) Append

func (rec Table) Append(buf []byte) []byte

Append appends the binary representation of the Anchor Table to buf.

func (Table) IsEmpty

func (rec Table) IsEmpty() bool

IsEmpty returns true if the Anchor Table has not been initialised.

Jump to

Keyboard shortcuts

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