post

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: 6 Imported by: 0

Documentation

Overview

Package post reads and writes "post" tables. https://docs.microsoft.com/en-us/typography/opentype/spec/post

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ItalicAngle        float64     // Italic angle in degrees
	UnderlinePosition  funit.Int16 // Underline position (negative)
	UnderlineThickness funit.Int16 // Underline thickness
	IsFixedPitch       bool

	Names []string // can be nil
}

Info contains information from the "post" table.

func Read

func Read(r parser.ReadSeekSizer) (*Info, error)

Read reads the "post" table from r. The slice in the .Names field in the returned structure, if non-nil, may point to shared internal storage and must not be shared. The function may read r beyond the end of the table.

func (*Info) Encode

func (info *Info) Encode() []byte

Encode encodes the "post" table.

Jump to

Keyboard shortcuts

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