fontgen

package
v0.0.0-...-71c440a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir string

	ResultPackage string

	OutDir string

	Tags []string

	DebugPrint func(message string)

	MissingGlyphAction MissingGlyphAction
}

type FontInfo

type FontInfo struct {
	Runes []RuneInfo

	Sizes []float64

	Date time.Time
}

type GenerationResult

type GenerationResult struct {
	Warnings []string

	FontInfo FontInfo
}

func Generate

func Generate(config Config) (GenerationResult, error)

type MissingGlyphAction

type MissingGlyphAction int
const (
	EmptyMaskOnMissingGlyph MissingGlyphAction = iota
	StubOnMissingGlyph
	PanicOnMissingGlyph
)

func (MissingGlyphAction) String

func (g MissingGlyphAction) String() string

type RuneInfo

type RuneInfo struct {
	Value       rune
	StringValue string
	Tag         string
}

Directories

Path Synopsis
_libfiles

Jump to

Keyboard shortcuts

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