fontcmd

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fontcmd wires the font library to a command's props (spec 0057 D2/D4).

The CLI handlers stay thin over this: a handler resolves a library, asks it a question and prints the answer. Where the scopes live is one decision, made here, rather than repeated in six verbs.

Index

Constants

View Source
const (
	Dir        = fonts.Dir
	ProjectDir = fonts.ProjectDir
)

Dir and ProjectDir moved to internal/fonts, so the object store can name the font kind's root without importing command wiring (0058 D4). Re-exported here because the font verbs already read naturally against this package.

Variables

This section is empty.

Functions

func Library

func Library(p *props.Props) *fonts.Library

Library builds the resolver for a command: the project's own fonts, the user's library, whatever the host has installed, and the faces embedded in the binary.

props.FS is used for BOTH the project and user scopes so the studio's in-memory projects resolve the same way an on-disk checkout does (0057 D5) — the render stack went to some trouble to stop depending on a real disk, and a font library that reached around it would put that back.

func UserDir

func UserDir(p *props.Props) string

UserDir reports where the user-scope library lives, for messages that need to name it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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