Skip to main content

FontParts based library for SMuFL font scripting

Project description

SMufoLib is a small Python library designed to aid in font development and scripting specific to the Standard Music Font Layout (SMuFL). As an extension of the FontParts API, SMufoLib relies on the platform and application independent Unified Font Object (UFO) format and the command line, rather than any particular font editor.

Documentation

SMufoLib’s documentation is available at smufolib.readthedocs.io.

Installation

SMufoLib requires Python 3.10 or later. It is listed in the Python Package Index (PyPI) and can be installed with pip:

$ python -m pip install smufolib

Scripts

SMufoLib comes bundled with several useful functions and scripts for building SMuFL metadata files, calculating engraving defaults from glyphs, importing identification attributes and more.

Scripts may be run either via the Python interpreter or directly from the console, passing in any arguments in the familiar manner to each platform.

As an example, check for missing or superflous SMuFL anchors by running the checkAnchors script directly from console:

$ check-anchors --mark

Or import it as a module in Python:

from bin import checkAnchors

checkAnchors(mark=True)

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

smufolib-0.1.2.tar.gz (31.0 kB view hashes)

Uploaded Source

Built Distribution

SMufoLib-0.1.2-py3-none-any.whl (40.4 kB view hashes)

Uploaded Python 3

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