kern

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info map[glyph.Pair]funit.Int16

Info contains information from the "kern" table. If the value for a glyph pair is greater than zero, the characters will be moved apart. If the value is less than zero, the character will be moved closer together. https://docs.microsoft.com/en-us/typography/opentype/spec/kern

func Read

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

Read reads the "kern" table.

func (Info) Encode

func (info Info) Encode() []byte

Encode converts the "kern" table to its binary representation.

Jump to

Keyboard shortcuts

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