Skip to main content

fontpls

Build Status PyPI - Python Version License

Overview

fontpls is a minimal cli tool for extracting fonts from websites written in Python.

This tool helps web developers, designers, and typographers easily extract and reuse fonts from websites with minimal effort.

Installation

pip install fontpls

Or install from source:

git clone https://github.com/jon-becker/fontpls
cd fontpls
pip install -e .

Usage

Basic usage:

fontpls https://example.com

With options:

fontpls https://example.com --output fonts --threads 8 --tags h1,p,div

Options

Option Description
--tags Only include fonts used in the specified HTML tags (comma-separated)
--exclude, -x Exclude fonts used in the specified tags (comma-separated)
--output, -o Output font files to the specified directory
--threads, -t Number of download threads to use
--verbose, -v Increase verbosity level (use multiple times for more detail)

Output

fontpls creates a directory structure like this:

example-com/
├── Font1-Regular.woff2
├── Font2-Bold.woff2
├── Font3-Italic.woff2
├── fonts.css
└── index.html
  • fonts.css: CSS stylesheet with @font-face declarations
  • index.html: HTML file showcasing all downloaded fonts

Contributing

If you'd like to contribute to fontpls, please open a pull-request with your changes, as well as detailed information on what is changed, added, or improved.

For more detailed information, see the contributing guide

Issues

If you've found an issue or have a question, please open an issue here. All issues must follow their respective templates.

Metadata

Release files for fontpls 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 fontpls 0.1.0
File Size Uploaded
fontpls-0.1.0.tar.gz 20.6 kB Details

Built distribution (wheel)

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

Total release size: 45.3 kB

Release files / fontpls-0.1.0.tar.gz

Download URL fontpls-0.1.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b14208e273c635b3291f778d98a5864c5672cc1f3b70bfa87f6dfee5eae6cdec
BLAKE2b-256 checksum
How to use checksums
a7699af021517208ed4774549f23194f54d0436d7f1bb553c8e43becb96601d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / fontpls-0.1.0-py3-none-any.whl

Download URL fontpls-0.1.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1452d3b1d50ec01bddeebd86242810185f5a97c8821ae8069dfdc3b409d40af6
BLAKE2b-256 checksum
How to use checksums
dd7bb7a5028ccf6b020703f1eb86516029b88f820bf57e1d0061b1348895f7ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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