Skip to main content

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


Download files

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

Source Distribution

pendot-0.1.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

pendot-0.1.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file pendot-0.1.1.tar.gz.

File metadata

  • Download URL: pendot-0.1.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for pendot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3b1dba0a4b05736fe5805b2dff878ba5f9b61d46df958ae2d9a6d76e25513b36
MD5 9f45e9b61d28758c7fce44713f486093
BLAKE2b-256 2f5bff962b3c51897068c023e23e72144218f1b6dd37985c83cd96efe489d7a0

See more details on using hashes here.

File details

Details for the file pendot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pendot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for pendot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca410fe1b7132fb9e25419f4baff9d9ac9c8d5ba2d26516c9cfb45d148490032
MD5 dbb3c2ba2a9dd13dba722ec76daa7971
BLAKE2b-256 ce9a62ea4715c059d41c477c09cedbf5fe09247e7008a349bc1902e891cb4fc2

See more details on using hashes here.

Supported by

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