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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontgen-0.0.3.tar.gz.
File metadata
- Download URL: fontgen-0.0.3.tar.gz
- Upload date:
- Size: 21.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2e8a76f38b17ee620b0f8f15ad39a2d31f0757c43876c4370aa92f8774345c6
|
|
| MD5 |
a91303a3151ec6945529b13032cebf55
|
|
| BLAKE2b-256 |
7787c990c983de705255d00a8798185faa5fe4a47fe443a726957baf7655ce3d
|
File details
Details for the file fontgen-0.0.3-py3-none-any.whl.
File metadata
- Download URL: fontgen-0.0.3-py3-none-any.whl
- Upload date:
- Size: 38.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37e85a0eafcf5057f5d3e4a75554993d028ddb2f754b52faf66f4f2367dfdef2
|
|
| MD5 |
5020eeca6bd8ba5ef62933251bd12ff4
|
|
| BLAKE2b-256 |
a7a99708a4d7d6e86992aa28e1202271739fbeac2469c1a8d54d8281707d822d
|