beetlebug▾
/

font families

Gives the names of the font families that ztk knows.

font families ?-displayof WINDOW?

Description

Gives a sorted list of the five built-in names, Courier, Helvetica, Inter, JetBrains Mono, and Times, of the families of the installed fonts that ztk found, and of the families of [font load](cmd:font load), each name once. The headless backend finds no installed fonts.

Returns

A list of family names.

Examples

# The headless backend gives the built-in names only.
% font families
Courier Helvetica Inter {JetBrains Mono} Times

Errors

% font families all
wrong # args: should be "font families ?-displayof window?"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also