/font-patcher-helper

Downloads the latest version of the Nerd Fonts Patcher and patch specified fonts.

Primary LanguagePythonMIT LicenseMIT

Nerd fonts patcher helper (font-patcher-helper)

Banner Latest version: 1.0.3 Project status: Active – The project has reached a stable, usable state and is being actively developed. Keep a Changelog 1.0.0 License: MIT

A Nerd Fonts Patcher helper to patch and ligaturize custom fonts.

Downloads the latest version of the Nerd Fonts Patcher and patch specified fonts.

Can add ligatures based on the ligatures implemented in Fira Code v3.1 OpenType fonts. For more information about why this version is used, see the following issue. This functionality is heavily based on the Ligaturizer project.

Requirements

Install

  • Update available packages:
     sudo apt-get update
  • Install Python v3:
     sudo apt install python3
  • Install fontforge:
     sudo apt-get install fontforge
  • Install fontforge and configparser python dependencies:
     sudo apt-get install python3-fontforge python-configparser
  • Clone this repo
     git clone https://github.com/lperezperez/font_patcher_helper.git
     cd font_patcher_helper

Usage

  • Run the script:

     ./font-patcher-helper.py [path]...

    Patched fonts are generated in the patched-fonts folder with the same font file sub-path for directories.

    Only .otf and .ttf fonts will be patched.

  • If you want to ligaturize fonts, run the script:

     ./ligaturize-fonts.py [path]...

    Ligaturized fonts are generated in the ligaturized-fonts folder with the same font file sub-path for directories.

    Only .otf and .ttf fonts will be ligaturized.

Changelog

See the Changelog for more details.

Maintainer

@Luiyi

Contribute

Feel free to fork, submit pull requests, etc.

This repository follows the Contributors covenant code of conduct.

License

Under MIT license terms.