Clone
clone: git://shithub.us/sigrid/fontsel gits://shithub.us/sigrid/fontsel
push: hjgit://shithub.us/sigrid/fontsel
patches to: sigrid on 9gridchan, or ftrvxmtrx@gmail.com
Last commit
d12d1842
– Sigrid
– 2020-08-05T08:42:07-04:00
fix stack overflow; close file when not needed; fix alternative text file reading
About
# fontsel
Simple font selector for Plan 9.

It scans `/lib/font/bit`, `/lib/font/ttf`, and shows the user a text.
User selects a font directory using middle mouse button and a specific
font in that directory with the right mouse button.
When the user decides to quit, using either `q` or `del`, program
prints out the full path to the last font selected, so that it's
possible to use it as follows:
```
font=`{fontsel} sam ....
```
`-` and `+` cycle through fonts of a specific font dir, or change the
size of the font if it's a TTF one.
Displayed text can be loaded from a file: `fontsel FILE`, where `FILE`
can be `-` to read from stdin.