https://github.com/alerque/sfdnormalize
SFD Normalizer (Extracted utility from DejaVu Fonts & Libertinus Fonts projects)
https://github.com/alerque/sfdnormalize
Last synced: over 1 year ago
JSON representation
SFD Normalizer (Extracted utility from DejaVu Fonts & Libertinus Fonts projects)
- Host: GitHub
- URL: https://github.com/alerque/sfdnormalize
- Owner: alerque
- License: cc0-1.0
- Created: 2020-08-13T20:29:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T10:37:23.000Z (over 3 years ago)
- Last Synced: 2025-03-18T18:12:57.807Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SFD Normalize
[](https://github.com/alerque/sfdnormalize/actions/workflows/build.yml)
Normalize Spline Font Database (SFD) files by discarding GUI state information making them easier to track in version control without clutter and conflicts between users.
```console
$ sfdnormalize --help
usage: sfdnormalize [-h] [--replace] [--version] [--keep KEEP]
[--sfd-version VERSION]
input_file [output_file]
https://github.com/alerque/sfdnormalize
(For authors, see AUTHORS in source distribution.)
Normalize Spline Font Database (SFD) files
positional arguments:
input_file Input SFD before normalization
output_file Path to write normalized SFD (default: None)
optional arguments:
-h, --help show this help message and exit
--replace, -r Replace in place (default: False)
--version, -V show program's version number and exit
--keep KEEP, -k KEEP Keep lines beginning with these even if they'd be
normally dropped. (Can provide multiple times.)
(default: None)
--sfd-version VERSION, -s VERSION
By default, latest SFD revision known to this program
will be written, unless specified here (default: 3.2)
```
## History
This script started life in the DejaVu Font project written in Perl (and dedicated to the Public Domain). At some point somebody rewrote it in Python, although I was unable to find any history between the latest Perl version and the first Python version that showed up in the Libertinus Font project.