Skip to main content

this_file: README.md

FontLab for external Python

Install FontLab 9 and automate its desktop application from ordinary Python:

uv pip install fontlab
fontlab-cli latest --beta
fontlab-cli install --beta
fontlab-cli launch
fontlab-cli submit my-script.vfpy
fontlab-cli eval 'fontlab.__name__'
fontlab-cli run automation.py
fontlab-cli tools
fontlab-cli call list_fonts --arguments '{}'

install, launch, submit and remote commands install FontLab automatically when it is absent. --beta selects the beta appcast for a new installation; an existing installation is reused unchanged, even if older or newer than the feed. There is no automatic upgrade or downgrade. latest only reads the feed. All command options follow the command name; --verbose shows a traceback.

On macOS, the default new destination is ~/Applications/FontLab 9.app. An existing /Applications/FontLab 9.app is also recognized. To select a different bundle, pass --destination '/path/to/FontLab 9.app'. On Windows, run installation from an elevated terminal: the shipped Inno installer requires administrator privileges. Its default is %ProgramFiles%\Fontlab\FontLab 9\FontLab 9.exe. --destination takes the full executable path. Silent flags suppress setup UI and prohibit restarts or closing applications; they cannot bypass Windows UAC. Normal launch and automation do not need elevation after installation. Linux is unsupported.

Downloads use the official platform appcasts over HTTPS, bounded network and installer waits, and enclosure length checks. A SHA-256 is checked if supplied by the feed. Current feeds supply Sparkle signatures, not SHA-256 hashes; this package does not verify those signatures. The unattended macOS installer automatically accepts the disk image’s licence prompt. Use installation only if you accept FontLab’s licence terms; activation and entitlement remain separate. The disk image is detached on copy failure. Existing destination files are never replaced intentionally.

import fontlab

fontlab.launch(beta=True)
with fontlab.connect(timeout=30) as app:
    print(app.eval('fontlab.__name__'))
    print(app.fonts())

Automation uses fontlab-remopy, including its authenticated MCP transport and execution result handling. run returns JSON with value, stdout and stderr; remote scripts assign result for a return value. submit hands a .vfpy file to FontLab and does not claim execution finished. On Windows file submission uses FontLab's executable; Remopy's own native application launcher supports macOS only. A native MCP bridge must be present for run, eval, tools and call; otherwise use submit. Timeouts can mean an operation executed without a response: inspect the host before repeating a mutating command. FontLab 9.1.9813 has a reported native bridge crash; use script submission on affected builds rather than MCP commands.

This is not the native fontlab binary API. Use these packages only in an external Python environment, never install them in FontLab's embedded Python. Inside FontLab, its native fontlab, fontgate and fontpr modules provide the real font-editing API. Outside it, the fontgate and fontpr PyPI distributions are explanatory stubs that raise ImportError. They do not emulate native types. FontLab licensing and activation remain the normal desktop application's process; installation does not grant a licence or bypass activation.

Development and releases

./test.sh -q
ALLOW_DEV=1 ./build.sh   # development version from git
./release.sh          # commit, patch bump, push and build all three packages
./publish.sh          # release, then upload all three through PyPI OIDC
./publish.sh minor    # or major

release.sh reuses pypitrust's uvx gitnextver flow: it fetches, fast-forwards the tracked branch, commits pending changes, bumps the semver tag and pushes through installed hooks. A clean, already tagged HEAD is reused. Run it only from a reviewed release checkout. publish.sh runs this release step first.

All three packages use the same repository tags through hatch-vcs. Build artifacts are collected in dist/vMAJOR.MINOR.PATCH (dist/dev for development). Publishing uses the multi-package upload helper generated by pypitrust. Register a trusted publisher for each of fontlab, fontgate, fontpr, using repository Fontlab/fontlab-pypi, workflow pypi-upload.yml, environment pypi. For the first publication, PyPI may reject simultaneous pending publishers with identical repository/workflow/environment tuples. Register fontlab, run ./release.sh to build all three, then upload only its wheel and sdist with scripts/pypi-upload.sh dist/vX.Y.Z/fontlab-*.whl dist/vX.Y.Z/fontlab-*.tar.gz. After that project exists, register and upload fontgate, then fontpr the same way. Once all three projects exist, ./publish.sh publishes them together. The helper retains failed staging drafts for retry. No PyPI API token is required.

Actual desktop installation, host automation and PyPI publication are separate checks; see WORK.md for the verified scope and TODO.md for outstanding acceptance checks.

Metadata

Release files for fontlab 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fontlab 1.0.0
File Size Uploaded Provenance Actions
fontlab-1.0.0.tar.gz 23.8 kB With provenance Details for fontlab-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fontlab 1.0.0
File Interpreter ABI Platform Actions
fontlab-1.0.0-py3-none-any.whl Python 3 none any Details for fontlab-1.0.0-py3-none-any.whl

Total release size: 38.3 kB

Release files / fontlab-1.0.0.tar.gz

Download URL fontlab-1.0.0.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
318245489cde84f43a22988c57f566df649d368faf7a5332dbb1a7e885a7d42c
BLAKE2b-256 checksum
How to use checksums
0f2ee1d3ad2e2bd97a4eab09edc975a3914c122fb8677dc7d97421d233fa34d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / fontlab-1.0.0-py3-none-any.whl

Download URL fontlab-1.0.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb109326e8a1407e782337f843a4ed149201bcf3c859069f2a299adcb87b9d35
BLAKE2b-256 checksum
How to use checksums
4d1b43827358baab8503c5362b12ea66e36da3576ba6ed140b9e2b41c19665a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for fontlab 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fontlab-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page