fonts

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fonts lists the font families installed on this computer, for the Settings tab's font menus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(name string) string

Name is a font family name as the page can take it in a CSS variable: letters, digits, spaces, dots, hyphens and underscores, trimmed; anything else gives "", the look's own font.

Types

type Fonts

type Fonts struct {
	// All is every family; Mono those whose letters are all one width,
	// for the code font. Both are sorted, and empty where the system
	// can't be asked, so Settings falls back to its list of common ones.
	All  []string `json:"all"`
	Mono []string `json:"mono"`
}

Fonts are the installed font families.

func List

func List() Fonts

List asks the system for its font families.

Jump to

Keyboard shortcuts

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