Font Tools
Collection of bash scripts for font processing and conversion.
Scripts
convert-ttf-in-woff2.sh
Script to convert TTF fonts to WOFF2 format
Usage:
./convert-ttf-in-woff2.sh file1.ttf file2.ttf ...
./convert-ttf-in-woff2.sh *.ttf
Or select files in Nemo file manager and run as script
Parameters:
files
- TTF files to convert
Examples:
./convert-ttf-in-woff2.sh font1.ttf font2.ttf # Convert specific files
./convert-ttf-in-woff2.sh *.ttf # Convert all TTF files
./convert-ttf-in-woff2.sh fonts/*.ttf # Convert TTF files in fonts folder
Features:
- Converted fonts will be saved in the 'woff2' subdirectory
- When used as Nemo script, progress is shown graphically
- Dual-mode operation (GUI/Terminal)
- Progress tracking and batch processing
- Automatic output directory creation
Dependencies:
woff2
package for font conversionzenity
for GUI dialogs (usually pre-installed)
Installation
- Install dependencies:
sudo apt install woff2 # Ubuntu/Debian
sudo dnf install woff2-tools # Fedora
# Note: zenity is usually pre-installed with desktop environments
- Make scripts executable:
chmod +x *.sh
- For use as Nemo scripts, copy to:
~/.local/share/nemo/scripts/
Notes
All scripts support dual-mode operation:
- Terminal mode: When run from command line
- GUI mode: When run as Nemo file manager scripts with zenity dialogs