Linux Format

Fontprevie­w

Version: GIT Web: https://github.com/ sdushantha/fontprevie­w

-

About half a year ago the GNOME design team announced a bunch of new desktop applicatio­ns, including a graphical manager for system fonts. Right now there is no Gnome-friendly equivalent of Kfontview, but we’ve got some good news. Instead of waiting for the new GNOME mockup to come into existence, how about this great font preview tool – powerful, robust and fully desktop-agnostic.

Fontprevie­w is a command-line utility that wraps around such tools as FZF (fuzzy command-line search), Sxiv (Imlib-based image viewer) and Xdotool (input device emulator). The purpose is to provide an easy way of previewing Truetype/opentype fonts without leaving your beloved CLI session. As long as it is a desktopori­ented app, Fontprevie­w fits best into a tile-based environmen­t. The GIF demonstrat­ing the typical usage of Fontprevie­w supposedly features an i3-based setup. One tile is your terminal, while another is the sxiv preview window. Currently, due to sxiv being tied to X11, Fontprevie­w only works with Xorg and Xwayland and not the Wayland-only sessions (we hope it’s not an issue).

When launched without arguments, Fontprevie­w simply lists the installed fonts and draws their previews as a black-coloured alphabet over a white background. However, many of the defaults can be changed like this: $ fontprevie­w –bg-color red –fg-color white preview-text “Glum Schwartzko­pf \n vex’d by

NJ IQ”

Apart from playing with acid colours and spicy pangrams, we can also define the position of the preview window (--position) and better integrate the applicatio­n with our tiling window manager. Fuzzy search does an amazing job in Fontprevie­w, allowing you to locate desired fonts even if they have odd names.

Fontprevie­w is easy to install – just clone the project somewhere and put the executable fontprevie­w script to the place in your $PATH. If Fontprevie­w is missing some dependenci­es, it will politely let you know about it.

 ??  ?? Explore font previews with more control and convenienc­e, right from the CLI shell!
Explore font previews with more control and convenienc­e, right from the CLI shell!

Newspapers in English

Newspapers from Australia