font

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) BoldFontFace

func (m *Manager) BoldFontFace() font.Face

func (*Manager) BoldItalicFontFace

func (m *Manager) BoldItalicFontFace() font.Face

func (*Manager) CharSize

func (m *Manager) CharSize() image.Point

func (*Manager) DPI

func (m *Manager) DPI() float64

func (*Manager) DecreaseSize

func (m *Manager) DecreaseSize()

func (*Manager) DotDepth

func (m *Manager) DotDepth() int

func (*Manager) IncreaseSize

func (m *Manager) IncreaseSize()

func (*Manager) ItalicFontFace

func (m *Manager) ItalicFontFace() font.Face

func (*Manager) RegularFontFace

func (m *Manager) RegularFontFace() font.Face

func (*Manager) SetDPI

func (m *Manager) SetDPI(dpi float64) error

func (*Manager) SetFontByFamilyName

func (m *Manager) SetFontByFamilyName(name string) error

func (*Manager) SetSize

func (m *Manager) SetSize(size float64) error

type Style

type Style uint8
const (
	Regular Style = iota
	Bold
	Italic
	BoldItalic
)

type StyleName

type StyleName string
const (
	StyleRegular    StyleName = "Regular"
	StyleBold       StyleName = "Bold"
	StyleItalic     StyleName = "Italic"
	StyleBoldItalic StyleName = "Bold Italic"
)

Jump to

Keyboard shortcuts

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