fonts

package
v0.0.0-...-fad336a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(f Font)

func LoadFrom

func LoadFrom(fsys fs.FS) (int, error)

func Range

func Range(fn func(Font) bool)

Types

type Font

type Font struct {
	Name       string
	Base       string
	Script     Script
	Regular    []byte
	Bold       []byte
	Italic     []byte
	BoldItalic []byte
}

func All

func All() []Font

func (Font) String

func (f Font) String() string

type Script

type Script uint
const (
	FontScriptAll      Script = FontScriptLatin | FontScriptCyrillic | FontScriptGreek
	FontScriptLatin    Script = 1
	FontScriptCyrillic Script = 2
	FontScriptGreek    Script = 4
)

func (Script) Filter

func (s Script) Filter(fn func(rune) bool) Script

func (Script) Flags

func (s Script) Flags() uint

func (Script) String

func (s Script) String() string

Jump to

Keyboard shortcuts

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