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 env/bin/activate

On Windows:

.\env\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.2.tar.gz (19.8 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.2-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fontgen-0.0.2.tar.gz
  • Upload date:
  • Size: 19.8 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.56.2 CPython/3.9.1

File hashes

Hashes for fontgen-0.0.2.tar.gz
Algorithm Hash digest
SHA256 46710bd1ab9772d0637986bd924f3a6674a1de69a31bdbc299df455a9b4a6875
MD5 f139f287e6406b3e13b7e2c69ad7d772
BLAKE2b-256 23d8a1ff3f2484795b8c9154ef5628200b5caacef472fad7925a4cfc7058d472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontgen-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.56.2 CPython/3.9.1

File hashes

Hashes for fontgen-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96c5d6f761faa640e445c7fc4ee7fd95ddbad73946789442fba12cf7e3d0435a
MD5 c6d1dbf49e920ce9bd674e5f8a09dba2
BLAKE2b-256 54a74f8279ea8ee24edfd6c26c9f22891f0529cba6ff77b226835d1199627e48

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