Overview
fontdiff is a tool to visually compare differences between two fonts by displaying character atlases overlaid. You run it and it just shows you the differences. It spits out PNGs or dynamic SVGs, and you can customise the output a bit.
Install
You can just quickly install fontdiff with pip:
pip install fontdiff
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. However, you may need to install all dependencies using pip first if you haven't done so already.
git clone https://github.com/derVedro/fontdiff.git
cd fontdiff/fontdiff
chmod +x fontdiff.py
ln -s $PWD/fontdiff.py ~/bin/fontdiff
Usage Examples
# regular usage
fontdiff fontA.ttf fontB.ttf
# you can use some predefined char sets
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
# SVG output
fontdiff -s fontA.ttf fontB.ttf
# consider to check all the possible options
fontdiff --help
Dependencies
- python ≥3.11
- pillow ≥10.1.0
- skia-pathops ≥0.8.0.post1
- ziafont ≥0.11
- 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 into
if you need additional functionality like extra character sets, setting sizes
or colors.
Metadata
Release files for fontdiff 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fontdiff-0.3.0.tar.gz | 12.2 kB | Without provenance | Details for fontdiff-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fontdiff-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for fontdiff-0.3.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / fontdiff-0.3.0.tar.gz
| Download URL | fontdiff-0.3.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2469f9aadd16bd34ff3e9b5473c4d5f1fb3956436ef64982c5b990d61d60dbda
|
|
BLAKE2b-256 checksum How to use checksums |
5cae82748fa30cbc79f8a47362f8e10379910293a7fef6ccd92a8aa997e50229
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / fontdiff-0.3.0-py3-none-any.whl
| Download URL | fontdiff-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc0ed89515ea569edbd721353b2c005fc56a31c0ec2ba6ebe2da3d8cb4eb813a
|
|
BLAKE2b-256 checksum How to use checksums |
7b4f5cbd0cc9977179527d45d9066f68482a2a97b2e8e8dffa1723b86c4fb4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for fontdiff 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.