fonts

package
v0.0.0-...-61f35a2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeepinFontConfig = path.Join(basedir.GetUserConfigDir(), "fontconfig", "conf.d", "99-deepin.conf")
)

Functions

func GetFontSize

func GetFontSize() float64

func IsFontFamily

func IsFontFamily(value string) bool

func IsFontSizeValid

func IsFontSizeValid(size float64) bool

func SetFamily

func SetFamily(standard, monospace string, size float64) error

Types

type Family

type Family struct {
	Id   string
	Name string

	Styles []string

	Monospace bool
	Show      bool
}

type FamilyHashTable

type FamilyHashTable map[string]*Family

func GetFamilyTable

func GetFamilyTable() FamilyHashTable

func (FamilyHashTable) Get

func (table FamilyHashTable) Get(key string) *Family

func (FamilyHashTable) GetFamilies

func (table FamilyHashTable) GetFamilies(ids []string) []*Family

func (FamilyHashTable) GetFamily

func (table FamilyHashTable) GetFamily(id string) *Family

func (FamilyHashTable) ListMonospace

func (table FamilyHashTable) ListMonospace() []string

func (FamilyHashTable) ListStandard

func (table FamilyHashTable) ListStandard() []string

Jump to

Keyboard shortcuts

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