Utility for creating dotted and stroked handwriting fonts
Project description
Pendot
This is a Python module used to add "effects" to Glyphs font source files; it will take an existing source file; add a number of transformations to the paths such as stroking or dotting open paths, adding guidelines, showing starting positions and so on; and save the result to a new Glyphs file.
It is designed to be used in conjunction with the Glyphs Pendot Designer script, but is available as a standalone Python package so that Dotter files can be built from the command line. The effects have various parameters which can be specified on the command line, or by using custom parameter values attached to a Glyphs instance; the parameters can also be overriden per glyph.
Simple use
To add dots to all open paths in a Glyphs font, with no custom settings added by the Pendot Designer script:
$ pendot dot -o Font-dots.glyphs --dot-size 30 --dot-spacing 20 Font.glyphs
To add strokes to all open paths in a Glyphs font, with no custom settings added by the Pendot Designer script:
$ pendot stroke -o Font-stroke.glyphs --stroke-width 30 Font.glyphs
However, these will not give optimal results. For better results, use Pendot Designer to tune the parameters on a per-glyph and per-instance basis, and run with
$ pendot -o Font-dots.glyphs Font.glyphs Regular
which will look for custom parameters stored in the Regular instance.
To run a combination of effects (small strokes, big dots, and guidelines!) either use Pendot Designer, or provide a JSON string or file on the command line:
$ pendot --config '{"effects": ["Stroker", "Dotter", "Guidelines"], \
"strokeWidth": 10, "dotSize": 50 }' --output Font-fancy.glyphs Font.glyphs
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pendot-0.1.0.tar.gz
.
File metadata
- Download URL: pendot-0.1.0.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb02d1584487b83327d50089d642b0263510c7aef6224e1b5251bbd3a34be70 |
|
MD5 | 4a1b98b3392d3f8433601952940a50e7 |
|
BLAKE2b-256 | b388e16a63c1cbad9fcfbbfcfe87f872970161bd1f8c80127ee0afbddec9e973 |
File details
Details for the file pendot-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pendot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39d5ee52ebd26fa043a44fbb11f15ef2a192f1570e1b50a8dbbc2e11a687f1b |
|
MD5 | ac96fcaae680c796357e56780f1b6867 |
|
BLAKE2b-256 | 1b69f2a640230fecfab37c76566327721160c705b292b08d7f0153bcd6a1e763 |