Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

font-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-analyzer

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

pipPyPI
Version
0.0.6
Maintainers
1

🎨 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

VariableDescriptionExample
URLWebsite URL to analyzehttps://github.com
FONT_PATHPath to font file./fonts/font.ttf
ALLOWED_FONTSComma-separated font patternsRoboto,Arial,.*Sans.*

📄 License

MIT License

Keywords

font

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts