glyph

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 1 Imported by: 17

Documentation

Overview

Package glyph contains types for representing glyphs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint16

ID is used to enumerate the glyphs in a font. The first glyph has index 0 and is used to indicate a missing character (usually rendered as an empty box).

type Info

type Info struct {
	GID     ID
	Text    []rune
	XOffset funit.Int16
	YOffset funit.Int16
	Advance funit.Int16
}

Info contains layout information for a single glyph.

type Pair

type Pair struct {
	Left  ID
	Right ID
}

Pair represents two consecutive glyphs, specified by a pair of character codes. This is sometimes used for ligatures and kerning information.

Jump to

Keyboard shortcuts

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