Skip to main content

Font Fetcher

A simple library to fetch (and cache) fonts from 1001fonts.com (more sources can be added later).

⚠️ Not all fonts are available for free for all use cases, so please check the license of each font before using it.

Installation

pip install font-fetcher

Usage

from font_fetcher import fetch_font

# Fetch a font by its name
font_name = "Open Sans"
font_style = "Bold"  # Optional (default is "Regular")
font_path = fetch_font(font_name, font_style)
print(f"Font '{font_name}' ('{font_style}') available at: {font_path}")

OCP integration

This library was written to help ensure the availability of fonts in code-CAD environments using OCP, so there is a simple hook to fetch fonts automatically when needed:

from font_fetcher.ocp import install_ocp_font_hook

install_ocp_font_hook()

After calling install_ocp_font_hook(), fonts will be fetched automatically if they are not already available.

Example for build123d: Text("Text", 10, font_name="Open Sans", font_style=FontStyle.BOLD)

Example for cadquery: wp.text("Text", 10, font="Open Sans", kind="bold")

⚠️ Not all fonts work with OCP, here is a list of known working and recommended fonts:

Metadata

Release files for font-fetcher 0.0.10

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

Source distribution (sdist)

Source distribution for font-fetcher 0.0.10
File Size Uploaded Provenance Actions
font_fetcher-0.0.10.tar.gz 79.0 kB With provenance Details for font_fetcher-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for font-fetcher 0.0.10
File Interpreter ABI Platform Actions
font_fetcher-0.0.10-py3-none-any.whl Python 3 none any Details for font_fetcher-0.0.10-py3-none-any.whl

Total release size: 89.6 kB

Release files / font_fetcher-0.0.10.tar.gz

Download URL font_fetcher-0.0.10.tar.gz
Size 79.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0405f45c96b2c37dde6d4e558ba3410c8c82877af00c78ae6d75976494a4052b
BLAKE2b-256 checksum
How to use checksums
fafa120e945bb41ee0a45356ec407eb8701a8c6a90b5ae1eceecd974a121fa4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 19, 2026.

Transparency log

Release files / font_fetcher-0.0.10-py3-none-any.whl

Download URL font_fetcher-0.0.10-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afcb78f9272ea68ec0b3e228ee0209dc0d9a23838cede38e3b51f6f36f599c46
BLAKE2b-256 checksum
How to use checksums
a8e30dc3f3a5bc9659eda0a9dbf9654ae6c1e5a67ce192986637177447c3f62d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 19, 2026.

Transparency log

Security for font-fetcher 0.0.10

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 font_fetcher-0.0.10.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 Jun 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