Skip to main content

this_file: README.md

FontLab for external Python

Install FontLab 9 and automate its desktop application from ordinary Python. Version 1.0.2 is published as fontlab, fontgate and fontpr; the GitHub release contains all three wheels and source archives.

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. connect, run, eval, tools and call wait for FontLab's native MCP catalogue before sending the requested operation. Remopy first opens FontLab with one special .vfpy setup macro that enables external MCP access and sets generalHideWarningDialogs=True. It confirms macro execution, then waits for MCP readiness. --timeout bounds startup readiness (30 seconds by default) and applies separately to each subsequent remote call. Only readiness checks repeat; scripts and tool calls are never retried. The setup macro changes the MCP and warning preferences persistently. A modal startup dialog shown before FontLab accepts scripts still needs dismissal; the macro cannot run until then.

The same bootstrap is available through Remopy's public synchronous helper, which calls its public setup_mcp operation before any readiness probe:

from fontlab_remopy import ensure_ready

ensure_ready(timeout=30)

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. 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. All three projects now have Trusted Publishers for repository Fontlab/fontlab-pypi, workflow pypi-upload.yml, environment pypi; ./publish.sh publishes them together. The initial release registered and uploaded fontlab, then fontgate, then fontpr, because PyPI rejects simultaneous pending publishers with identical repository/workflow/environment tuples. Each upload converted its pending publisher before the next registration. 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.3

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.3
File Size Uploaded Provenance Actions
fontlab-1.0.3.tar.gz 26.0 kB With provenance Details for fontlab-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 40.9 kB

Release files / fontlab-1.0.3.tar.gz

Download URL fontlab-1.0.3.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e1a6d9357b868462a47dd839d566943a729d66f939556da724a0a12d8992b261
BLAKE2b-256 checksum
How to use checksums
63aee492c1de5a00b0cfe300ef4bcafc35a0348a04d209c1793fabce95f6c372
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 19, 2026.

Transparency log

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

Download URL fontlab-1.0.3-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
250d6f8048344bcabdf749ad9c9f6a2a22909da743cf7b52461c1a7b55f401c9
BLAKE2b-256 checksum
How to use checksums
ac05d4f17514c8a9c793693e7df5c74eca4e73c3a127850860d642ee14486007
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 19, 2026.

Transparency log

Security for fontlab 1.0.3

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.3.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 19, 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