Font Preview in Terminal (Javascript)
I recently read an article on omgubuntu titled "Want to Preview Fonts using a Terminal? Now You Can!". I thought the idea was cool but I wasn't able to get it running on Mac and from screenshots it looked it's not really previewing fonts in the terminal, just in another window. So I started this small side project to do that.
yarn
to install dependenciesyarn build
to build the projectyarn start
to start the projectyarn lint
to test code styleyarn test
to run testsreturn
the selected font from the list will be presented on the right side of the terminal/
search box will appear in the top right corner of the list, then user can input name of the font and the list will be filtered accordingly
/
againq
application will exitTo generate preview by default application is using imgcat
to use different tool you can pass environment variable IMAGE_PREVIEW_PROCESS