This tries to be a reimplementation of sdushantha/fontpreview by Siddharth Dushantha in Elisp using helm instead of fzf.
You can browse the fonts installed on your system and show a preview, copy the font name or path and set the frame font.
Fontpreview-mode depends on imagemagick, which is probably already installed on you system. It also depends on helm.
Clone the repository or just download fontpreview-mode.el and put it in the load-path.
Put the following somewhere in your .emacs file.
(require 'fontpreview-mode)
Just run M-x fontpreview to run fontpreview.
You can customize the text-sample, foreground- and background-color and font-size used for the preview. The variables are:
- fontpreview-preview-text
- fontpreview-foreground-color
- fontpreview-background-color
- fontpreview-font-size