TRUETYPEFS(4)TRUETYPEFS(4)

NAME

truetypefs – TrueType font file system

SYNOPSIS

truetypefs [ -F fontpath ]

DESCRIPTION

Truetypefs serves a read-only filesystem at /n/ttf that generates fonts and subfonts from TrueType fonts which can be used in the Plan 9 graphics system.

By default, fonts are loaded from /lib/font/ttf/. The -F flag may be used to set the path TrueType fonts are loaded from.

Truetypefs generates subfonts when they are accessed. Fonts are specified via a TrueType font file name followed by a font size. For example, /n/ttf/unifont.ttf.16/font is a font(6) file generated for GNU Unifont at a size of 16.

EXAMPLES

Use size 16 GNU Unifont for acme(1):

 

truetypefs
font=/n/ttf/unifont.ttf.16/font
acme -c 1 /lib/glass

SOURCE

/sys/src/cmd/truetypefs.c

SEE

ttf(2), font(6), subfont(2)

HISTORY

Truetypefs first appeared in 9front (October, 2018).