fontcache

package
v0.0.0-...-c131409 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FontPaths = []string{
	filepath.Join(os.Getenv("windir"), "Fonts"),
	filepath.Join(os.Getenv("localappdata"), "Microsoft", "Windows", "Fonts"),
}

Functions

This section is empty.

Types

type Cache

type Cache map[string]*truetype.Font

func New

func New() Cache

func (Cache) Init

func (c Cache) Init(paths []string)

Init returns a list of all font files found on the system.

Jump to

Keyboard shortcuts

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