fonts

package
v0.71.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 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 enumerates the operating system's installed font families so the frontend can offer them as terminal fonts. Chromium resolves fonts through the same database this package reads — fontconfig on Linux and macOS, the Fonts registry key on Windows — so any family listed here is renderable by name in the terminal without bundling it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service lists installed font families.

func New

func New() *Service

New returns a ready-to-use fonts service.

func (*Service) List

func (s *Service) List() ([]string, error)

List returns the sorted, de-duplicated set of installed font families, enumerated the way this OS records them (see the list_* files).

Jump to

Keyboard shortcuts

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