Skip to main content

A tool for detecting and analyzing font metadata from websites and files

Project description

🎨 Font Analyzer

Automated font discovery, analysis, and compliance validation from websites and local files.

License PyPI

Features

  • 🌐 Discover fonts from websites
  • 📁 Analyze local font files
  • ✅ Validate against custom whitelist policies
  • 📊 Generate compliance reports
  • 🔧 Support for TTF, OTF, WOFF, WOFF2 formats

Installation

pip install font-analyzer

Quick Start

Analyze Website Fonts

font-analyzer --url "https://github.com" --allowed_fonts "Roboto" "Arial" "Open Sans"

Analyze Local Font File

font-analyzer --font_path "./fonts/my-font.ttf" --allowed_fonts "Roboto" "Arial"

Usage Examples

Basic Commands

# Website analysis
font-analyzer --url "https://github.com"

# Local file analysis  
font-analyzer --font_path "/path/to/font.ttf"

# With whitelist validation
font-analyzer --url "https://github.com" --allowed_fonts "Roboto" ".*Arial.*"

# Verbose output for detailed analysis
font-analyzer --url "https://github.com" --verbose
# or use short form
font-analyzer --url "https://github.com" -v

# Get help and see all options
font-analyzer --help

Environment Variables

# Set environment variables
export URL="https://github.com"
export ALLOWED_FONTS="Roboto,Open Sans,.*Arial.*"
font-analyzer

# Windows
set ALLOWED_FONTS=Roboto,Open Sans,.*Arial.*
font-analyzer

Configuration

Variable Description Example
URL Website URL to analyze https://github.com
FONT_PATH Path to font file ./fonts/font.ttf
ALLOWED_FONTS Comma-separated font patterns Roboto,Arial,.*Sans.*

📄 License

MIT License

🔗 Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

font_analyzer-0.0.6.tar.gz (115.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

font_analyzer-0.0.6-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file font_analyzer-0.0.6.tar.gz.

File metadata

  • Download URL: font_analyzer-0.0.6.tar.gz
  • Upload date:
  • Size: 115.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for font_analyzer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 00f58012726e667aef41ecb67f8c636635c01396b406fbbe36e615dd41297bf1
MD5 44db2b7d8480062493246ef85e4011a0
BLAKE2b-256 56a05f1c22ba783fa70ad150fb30d589a834f6556675c1e65064b6348c6b3eb7

See more details on using hashes here.

File details

Details for the file font_analyzer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for font_analyzer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c597f9226d959d302f00b6ff180f5c6d369cc1bc6f999a3659d450d16661ad6f
MD5 be68569a537e1fc25983a1fab188cf43
BLAKE2b-256 36aecda177698b21cf0460be699f97179604f92574d47aed96913d0406f749c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page