Skip to content

issuingemu/fontfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fontfile

A short script I wrote that reads your locally installed fonts and then creates a PDF preview for all of them. Useful for deciding on fonts to use with your Dotfiles while ricing.

Prerequisites

Requires Typst to compile the PDF natively and quickly. To install Typst on Arch Linux, run:

sudo pacman -S typst

(For other distributions, check your package manager or the official Typst documentation)

Usage

  1. Clone the repository or download the script.

  2. If you need the PDF to showcase specific characters, you can modify the text variables. The lines to do this are commented in the script. Make sure to add a backslash in front of syntax characters. To configure the script, type

    nano fontfile.sh
  3. Make the script executable

    chmod +x fontfile.sh
  4. Execute the script:

    ./fontfile.sh

Output

The script will automatically generate a fontfile.pdf in the same directory. It displays every installed font in standard, bold, italic, and bold-italic styles. It also includes various special characters to immediately show if a font lacks specific glyphs. To update the PDF after installing new font / deleting old ones, just execute it again. The script will detect the outdated file and create a new one automatically.

License

This project is licensed under the MIT License. Feel free to use and modify it!

About

Short script I wrote that reads your locally installed fonts and then creates a PDF preview for all of them. Useful for deciding on fonts to use in Dotfiles while ricing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages