font

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause, Unlicense Imports: 5 Imported by: 20

README

font

font is a library that handles loading and utilizing fonts

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

type Face = *font.Face

Face is a Font with user settings, not safe for concurrent use.

func ParseTTC

func ParseTTC(file Resource) ([]Face, error)

ParseTTC parse an Opentype font file, with support for collections. Single font files are supported, returning a slice with length 1.

func ParseTTF

func ParseTTF(file Resource) (Face, error)

ParseTTF parse an Opentype font file (.otf, .ttf). See ParseTTC for support for collections.

type Font

type Font = *font.Font

Font is a readonly view of a font file, safe for concurrent use.

type GID

type GID = api.GID

type GlyphMask

type GlyphMask = harfbuzz.GlyphMask

type Resource

type Resource = loader.Resource

Jump to

Keyboard shortcuts

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