package font

import "github.com/go-text/typesetting/font"

Index

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

Source Files

font.go

Version
v0.1.1
Published
Mar 29, 2024
Platform
darwin/amd64
Imports
5 packages
Last checked
6 hours ago

Tools for package owners.