font

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name             string
	StyleDefinitions []StyleDefinition
}

type Definitions

type Definitions struct {
	MonoFont string
	Fonts    []Definition
}

type Descriptor

type Descriptor struct {
	Name     string
	Style    Style
	FilePath string
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func LoadRegistryFromFile

func LoadRegistryFromFile(file string) (*Registry, error)

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Each

func (d *Registry) Each(do func(fd Descriptor) error) error

func (*Registry) MonoFont

func (d *Registry) MonoFont() string

func (*Registry) Register

func (d *Registry) Register(fd Descriptor)

type Style

type Style string
const (
	Regular    Style = "regular"
	Bold       Style = "bold"
	Italic     Style = "italic"
	BoldItalic Style = "bold+italic"
)

type StyleDefinition

type StyleDefinition struct {
	Style    Style
	FilePath string
}

Jump to

Keyboard shortcuts

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