Skip to main content

Fonti

Install a font file or a whole folder of fonts on Windows from PowerShell. Fonti supports .ttf, .otf, .ttc, and .otc files.

Quick start

With uv installed, run this in PowerShell to install Fonti from PyPI. Fonti requires Python 3.13 or later.

uv tool install fonti

To install a single font for your Windows account, pass its path.

fonti install .\Regular.ttf

Install a font family from a release ZIP

Use the ZIP download link from the LXGW WenKai v1.530 release. Preview the fonts, install them for your account, then list the installed entries.

$url = 'https://github.com/lxgw/LxgwWenKai/releases/download/v1.530/lxgw-wenkai-v1.530.zip'
fonti info "$url"
fonti install "$url"
fonti list WenKai

The archive includes Light, Regular, and Medium weights for both LXGW WenKai and LXGW WenKai Mono. Look for six matching rows. Each shows an installed name and a filename, separated by a tab. One of them is the Regular weight.

LXGW WenKai (TrueType)	LXGWWenKai-Regular.ttf

Optional cleanup. To remove just the Regular font shown above, pass its exact filename. The other five fonts from the archive will still appear in the list.

fonti remove 'LXGWWenKai-Regular.ttf'
fonti list WenKai

Installing fonts

Pass a directory to include its subdirectories, or give several files in one command.

fonti install .\fonts
fonti install .\Regular.ttf .\Bold.ttf

Both info and install accept direct HTTPS links to individual fonts or ZIP files. For a GitHub release, copy the asset's download link. You can mix local paths and URLs in one install command. Each command downloads its own temporary copy and cleans it up afterward.

Downloads are limited to 256 MiB each. Fonti extracts stored or Deflate-compressed fonts from ZIP subdirectories and skips macOS metadata. A ZIP can contain up to 4,096 entries, 4 MiB of central directory metadata, and 512 MiB of expanded fonts. Font paths can be nested up to 64 directories deep.

Current-user installs require Windows 10 version 1809 or later. To install for everyone, open PowerShell as administrator and use --system.

fonti install .\fonts --system
fonti list --system

You can rerun an install. Fonti skips identical, registered files and finishes registration if a previous run stopped after copying. Use --replace to overwrite a file with the same filename and different contents. If the font name already points to another file, use list to find the conflicting entry.

Some releases bundle static and variable fonts that register under the same name. Use info to spot duplicate registry names. To pick a variant, extract the ZIP locally and pass the desired font files to install.

Inspecting and removing fonts

Use info on a path or HTTPS download link to see the names Fonti will register. Use list to find installed fonts by name or filename. Its optional keyword is a case-insensitive, literal substring.

To uninstall a font, copy its exact filename or installed name from list. Quote names containing spaces. You can pass several targets. Fonti checks every target before removing any of them. If a filename is ambiguous, use the installed name. Files shared by other entries in the same scope and originals outside its font directory are preserved. To remove a system font, add --system in an elevated PowerShell window.

Using Fonti in scripts

  • install exits with code 0 when every input was installed or already present. A conflict, an input with no supported fonts, or a write failure stops the batch and returns a nonzero code. The error goes to stderr, and earlier successful installs remain in place.
  • If Windows cannot activate a font immediately, Fonti reports a warning. The file and registration are in place, and a restart may be needed before apps can use it.
  • list returns exit code 0 and prints nothing when its search has no matches.

Development

Run the test suite from a checkout on Windows.

uv sync --locked
uv run pytest
uv run fonti --help

Metadata

Release files for fonti 0.1.1

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

Source distribution (sdist)

Source distribution for fonti 0.1.1
File Size Uploaded Provenance Actions
fonti-0.1.1.tar.gz 11.0 kB Without provenance Details for fonti-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 26.8 kB

Release files / fonti-0.1.1.tar.gz

Download URL fonti-0.1.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf32170067b31b37721c3c0e6926cf2e7dca620ee783119c8551d26b1191edf1
BLAKE2b-256 checksum
How to use checksums
adb4d6f83712220925d5dba98df3c524817ca653e518fa35a0984f7ad03f931a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fonti-0.1.1-py3-none-any.whl

Download URL fonti-0.1.1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc2a3f0ef0a15170b61969322f4b89a1a1edb19f30ee798a5b91f9146cd1b150
BLAKE2b-256 checksum
How to use checksums
f4debf8c1fab9b2b8e322f9a07ea4147fe65e5bef6779b6b725778598186a13a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for fonti 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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