Skip to content

derVedro/fontdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

fontdiff is a tool to visually compare differences between two fonts by displaying character atlases overlaid.

Install

You can quickly install fontdiff into your home directory straight from github:

pip install --user git+https://github.com/derVedro/fontdiff.git

Alternatively, you can clone the repo and simply run fontdiff.py as a script, or even place a symlink of fontdiff.py to your preferred bin directory.

git clone https://github.com/derVedro/fontdiff.git
cd fontdiff/fontdiff
chmod +x fontdiff.py
ln -s $PWD/fontdiff.py ~/bin/fontdiff

Usage Example

fontdiff fontA.ttf fontB.ttf
# you can use some predefined chars set
fontdiff fontA.ttf fontB.ttf +greek +numerals
# or even try more options
fontdiff --cell-size 30 --chars "abcde1234!@#$" fontA.ttf fontB.ttf
# save result as file
fontdiff fontA.ttf fontB.ttf > diff.png

Dependencies

  • python ≥3.11
  • pillow ≥10.1.0
  • numpy (optional)

Miscellaneous

You can configure fontdiff by putting a toml config file into $XDG_CONFIG_HOME/fontdiff/ or $HOME/.fontdiff/ directory. An example configuration file is provided in this repository. It's worth taking a look if you need additional functionality like character sets, size or color settings.

About

visual compare of two fonts

Topics

Resources

License

Stars

Watchers

Forks

Languages