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 Git and uv installed, run this in PowerShell. Fonti requires Python 3.13 or later.

uv tool install git+https://github.com/Noai-oss/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

Open PowerShell in an empty folder. Download the font archive from the LXGW WenKai v1.530 release and extract it.

$url = 'https://github.com/lxgw/LxgwWenKai/releases/download/v1.530/lxgw-wenkai-v1.530.zip'
Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile .\lxgw-wenkai-v1.530.zip -ErrorAction Stop
Expand-Archive -LiteralPath .\lxgw-wenkai-v1.530.zip -DestinationPath .\wenkai -ErrorAction Stop

Preview the fonts, install the extracted directory for your account, then list the installed entries. Fonti searches subdirectories recursively.

fonti info .\wenkai
fonti install .\wenkai
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

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.

Inspecting and removing fonts

Use info on a file or directory to see the name 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.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 fonti 0.1.0
File Size Uploaded Provenance Actions
fonti-0.1.0.tar.gz 8.6 kB Without provenance Details for fonti-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.5 kB

Release files / fonti-0.1.0.tar.gz

Download URL fonti-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5e09c698c389bf53bf9559d0402fc919aa2e2cd28e54dfe82a13b05ff27be93
BLAKE2b-256 checksum
How to use checksums
5326729d2a54aec93763c7ea13e5db9ed9b1a79d3f16521d9f319050a77b4cd5
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.0-py3-none-any.whl

Download URL fonti-0.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd22045aef09d0e4ecec0417c78e785b0bc2b34e6642c966b63bd19d92b8b0f8
BLAKE2b-256 checksum
How to use checksums
a70f1bda78ea2eb831c4eb7eb5ebe645c5392e01214168ff094b25d7a4d2a0d1
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.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.

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.0 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