Skip to main content

Python package for generating fonts

Project description

fontgen

Python package for generating fonts.

Installation

This is one time process.

Fontgen requires Python 3.8 or later.

First you need to create a virtual environment for python

On macOS and Linux:

python3 -m venv venv

On Windows:

py -m venv venv

Activating a virtual environment

On macOS and Linux:

source venv/bin/activate

On Windows:

.\venv\Scripts\activate

Downloading and Installing fontgen

Run following command

pip install fontgen

Usage

Make sure the virtual environment is activated.

Refer to Activating a virtual environment

Set a configuration before running a command for the first time. Refer to democonfig.ini for config format.

Load a configuration if you have any custom configuration.

fontgen -lc myconfig.ini

If you don't want to use config file. Tyle this command to set empty config.

fontgen -lc reset

Compile a font:

fontgen -f "Font Family Name" -o var

For italic version you will have to type "Font Family Name Italic"

For detailed usage, type:

fontgen -h

Directory structure

You can keep designspace file or glyphs file under masters directory. If it is glyphs file, you can convert it to designspace by running following command. Make sure to create info.txt file in the directory.

fontgen -f "Font Family Name" -gd

/ Base Directory (Name of the Directory = Font family name)
    / masters
        /Family Name.designspace (or)
        /Family Name.glyphs
    /info.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontgen-0.0.4.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fontgen-0.0.4-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file fontgen-0.0.4.tar.gz.

File metadata

  • Download URL: fontgen-0.0.4.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for fontgen-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8e6ebb09a551bb3806e0642af6fe3c5df9ae03ea88c3cacc743cc8e461646697
MD5 3ec347e1d1b2968d9d90c472af691a90
BLAKE2b-256 3c029aa6e224385d640ed28bf1cae627d0154f3e54dbc5ace85a8a0e4d13cf5f

See more details on using hashes here.

File details

Details for the file fontgen-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: fontgen-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for fontgen-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fdeed2448f5a44fec9544b675950ace1f24a7b91675f448673d18c70137b12
MD5 259b7141e2fa1e02da0eed27c7730c30
BLAKE2b-256 8dfabb490087780d815f536d502b7d79a6b49c9aafbdfbb59029419f98ad6674

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page