profile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT = Profile{
	Charset: "#@80GCLft1i;:,.",
	Font: Font{
		Typeface: "gomonobold",
		Size:     12,
		DPI:      72,
	},
	Squoosh: Squoosh{
		Enabled: true,
	},
}

Functions

This section is empty.

Types

type Font

type Font struct {
	Typeface string  `json:"typeface"`
	Size     float64 `json:"size"`
	DPI      float64 `json:"dpi"`
}

func (*Font) Load

func (f *Font) Load() (font.Face, error)

func (*Font) Set

func (f *Font) Set(s string) error

func (Font) String

func (f Font) String() string

type Profile

type Profile struct {
	Charset string  `json:"charset"`
	Font    Font    `json:"font"`
	Squoosh Squoosh `json:"squoosh"`
}

func (*Profile) Load

func (p *Profile) Load(file string) error

type Squoosh

type Squoosh struct {
	Enabled bool
	Width   *uint32
}

func (*Squoosh) Set

func (u *Squoosh) Set(s string) error

func (Squoosh) String

func (u Squoosh) String() string

Jump to

Keyboard shortcuts

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