Enterprise-grade San Francisco Pro font collection, automated OpenType/TrueType binary validation engine, SHA-256 manifest indexer, and interactive typography specimen studio.
Core Modules β’ Architecture β’ Quick Start β’ Documentation
Important
The font binaries under fonts/ are Β© Apple Inc. and are not MIT-licensed. Apple permits their use solely for creating UI mock-ups for Apple platforms (iOS, iPadOS, macOS, tvOS, watchOS, visionOS). The MIT License covers this repository's tooling, studio application, configuration, and documentation. Read NOTICE.md before use.
- Zero-IO Font Discovery & Naming Parser (
tools/catalog.py) β Deterministic catalog builder that scansfonts/<family>/and derives structuredFontFilemetadata (family,style,italic,variable,weight, andformat) directly from folder layout and file names without opening binary streams. Enforces strict regex patterns (_STATIC_REand_VARIABLE_RE) and normalizes Apple's internal Bold weight class (600) to standard CSSfont-weight: 700. - Binary OpenType & TrueType Table Validator (
tools/validate.py) β High-speed integrity verifier powered byfontTools.ttLib.TTFont(lazy=True). Cross-checks all 47 font binaries in under one second: verifies mandatory OpenType tables (name,OS/2,cmap,head,hhea,hmtx,maxp,post), confirms outline formats (CFFfor static.otf,glyf+fvarfor variable.ttf), validatesOS/2.fsSelectionbit0against italic file names, and audits Apple's embedded copyright notice (nameID0). - Cryptographic Manifest Indexer (
tools/manifest.py&fonts/manifest.json) β Generates and verifies the machine-readable schema v1 index atfonts/manifest.json. Streams every font in1 MiBchunks to compute deterministicsha256digests, exact byte counts, outline formats, andcssWeightmappings. Supports--checkmode for zero-drift CI gating. - Interactive Typography Specimen & Integrity Studio (
src/) β Modular React + TypeScript + Vite web application running on port3000. Provides a searchable 47-font binary inventory, an interactive variable-axis specimen lab (wght1β1000,opsz17β28,YAXS400β1000), Apple's 20 pt Display vs. Text optical size advisor, live CSS@font-face/font-variation-settingscode generation, and a real-time 47/47 SHA-256 verification matrix. - Dual-Runtime Automated Test Matrix (
tests/&src/utils/fontCatalog.test.ts) β Comprehensivepytestsuite (tests/test_catalog.py,tests/test_fonts.py) validating naming rules, corrupted binary detection, stray root file guards, and manifest freshness alongside Node built-innode:testunit tests for client-side catalog and audit logic.
| Family | Directory | Outline Format | Weights | Italics | Files |
|---|---|---|---|---|---|
| SF Pro Display | fonts/display/ |
OpenType CFF (otf) |
9 (100β900) |
Yes | 18 |
| SF Pro Text | fonts/text/ |
OpenType CFF (otf) |
9 (100β900) |
Yes | 18 |
| SF Pro Rounded | fonts/rounded/ |
OpenType CFF (otf) |
9 (100β900) |
No | 9 |
| SF Pro | fonts/variable/ |
TrueType Variable (ttf) |
1β1000 |
Yes | 2 |
Optical Sizing Rule: Apple recommends SF Pro Text below
20 ptand SF Pro Display at20 ptand above. The variable fonts (SF-Pro.ttf,SF-Pro-Italic.ttf) transition smoothly via theopsz(17β28) axis, while the italic variable font adds theYAXS(400β1000) vertical axis.
FS-Pro-/
βββ .github/
β βββ ISSUE_TEMPLATE/
β β βββ bug_report.md # Structured bug report template for tooling & font integrity
β β βββ feature_request.md # Structured enhancement proposal template
β βββ workflows/
β β βββ ci.yml # Python matrix CI (Ruff, Markdownlint, validate, manifest, pytest)
β β βββ ci-check.yml # Unified enterprise CI/CD (Python validation + Node/TS build & tests)
β βββ PULL_REQUEST_TEMPLATE.md # PR checklist enforcing validation, manifest sync, and test passes
βββ docs/
β βββ ARCHITECTURE.md # System flow diagram (Mermaid.js) and deep module breakdown
β βββ SETUP_AND_DEPLOYMENT.md # Environment variables, local/Termux setup, and cloud deployment
βββ fonts/
β βββ display/ # SF Pro Display β 9 static weights Γ Roman/Italic (18 .otf files)
β βββ rounded/ # SF Pro Rounded β 9 static weights Γ Roman (9 .otf files)
β βββ text/ # SF Pro Text β 9 static weights Γ Roman/Italic (18 .otf files)
β βββ variable/ # SF-Pro.ttf & SF-Pro-Italic.ttf variable binaries (2 .ttf files)
β βββ manifest.json # Schema v1 deterministic index (path, style, cssWeight, bytes, sha256)
βββ src/
β βββ components/
β β βββ CatalogView.tsx # Searchable 47-font data grid with family/posture/format filters
β β βββ DocsExplorer.tsx # Interactive technical documentation and governance viewer
β β βββ IntegrityAudit.tsx # Real-time 47/47 binary rule and SHA-256 verification matrix
β β βββ SpecimenLab.tsx # Live variable-axis specimen tester and CSS snippet generator
β β βββ TopBar.tsx # 3-zone enterprise navigation bar and manifest JSON exporter
β βββ types/
β β βββ font.ts # TypeScript interfaces for manifest entries and audit reports
β βββ utils/
β β βββ fontCatalog.ts # Pure catalog parser, optical advisor, and validation engine
β β βββ fontCatalog.test.ts # Node built-in unit tests (node:test + node:assert/strict)
β βββ App.tsx # Root application workspace shell
β βββ index.css # Tailwind CSS v4 config and local @font-face declarations
β βββ main.tsx # React 19 DOM entry point
βββ tests/
β βββ test_catalog.py # Unit tests for path parsing, CSS weight mapping, and folder guards
β βββ test_fonts.py # Collection completeness, corrupt binary detection, and manifest tests
βββ tools/
β βββ __init__.py # Python tooling package marker
β βββ catalog.py # Zero-IO font discovery and metadata extraction engine
β βββ manifest.py # SHA-256 manifest builder and CI freshness checker (--check)
β βββ validate.py # fontTools OpenType/TrueType binary table validator
βββ .editorconfig # Cross-editor indentation and newline rules
βββ .env.example # Optional environment variable overrides (FONTS_DIR, MANIFEST_PATH)
βββ .gitattributes # Binary diff/merge protection for .otf and .ttf assets
βββ .gitignore # Python, Node, build, and OS ignore rules
βββ .markdownlint.jsonc # Markdownlint rule configuration
βββ CODE_OF_CONDUCT.md # Contributor Covenant Code of Conduct
βββ CONTRIBUTING.md # Contribution workflow, Conventional Commits, and naming rules
βββ index.html # Web studio HTML entry point
βββ LICENSE # MIT License (covers code, tooling, studio, and documentation)
βββ metadata.json # Application metadata descriptor
βββ NOTICE.md # Licensing split between Apple font binaries and MIT tooling
βββ package.json # Node.js scripts and dependencies for the web studio
βββ pyproject.toml # Python project metadata, pytest, and Ruff configuration
βββ README.md # Enterprise project overview and quick-start guide
βββ requirements-dev.txt # Pinned Python dependencies (fonttools, pytest, ruff)
βββ SECURITY.md # Vulnerability disclosure policy and integrity guarantees
βββ tsconfig.json # TypeScript compiler configuration
βββ vite.config.ts # Vite dev/build server configuration (port 3000)
git clone https://github.com/soyelx/FS-Pro-.git
cd FS-Pro-npm install
npm test # Run fast TypeScript unit tests (node:test)
npm run lint # Run TypeScript typechecking (tsc --noEmit)
npm run dev # Start the interactive studio on http://localhost:3000
npm run build # Build production static assets to dist/python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements-dev.txt
python -m tools.validate # Parse and verify all 47 font binaries
python -m tools.manifest # Regenerate fonts/manifest.json
python -m tools.manifest --check # Verify fonts/manifest.json is up to date (CI gate)
pytest # Execute full pytest unit and integrity suite
ruff check . && ruff format --check .| Operating System | Installation Command / Steps |
|---|---|
| macOS | Select the files in fonts/ β double-click β Install Font in Font Book, or run cp fonts/*/*.{otf,ttf} ~/Library/Fonts/. |
| Linux | mkdir -p ~/.local/share/fonts/sf-pro && cp -r fonts/*/ ~/.local/share/fonts/sf-pro/ && fc-cache -f |
| Windows | Select desired font files under fonts/ β right-click β Install for all users. |
# List all italic SF Pro Display font paths using jq
jq -r '.fonts[] | select(.family == "SF Pro Display" and .italic) | .path' fonts/manifest.jsonimport json
from pathlib import Path
manifest = json.loads(Path("fonts/manifest.json").read_text(encoding="utf-8"))
bold_fonts = [f["path"] for f in manifest["fonts"] if f.get("cssWeight") == 700]Complete technical documentation is maintained in docs/ and root governance files:
- System Architecture (
docs/ARCHITECTURE.md) β Mermaid.js data flow diagram, binary table validation rules, variable font axis specifications, and module internals. - Setup & Deployment Guide (
docs/SETUP_AND_DEPLOYMENT.md) β Environment variables (FONTS_DIR,MANIFEST_PATH), local and Termux setup, Docker/cloud hosting, and CI automation. - Contributing Guidelines (
CONTRIBUTING.md) β Pre-PR verification checklist, Conventional Commits specification, and canonical font naming rules. - Security Policy (
SECURITY.md) β SHA-256 supply-chain verification and vulnerability reporting procedures. - Code of Conduct (
CODE_OF_CONDUCT.md) β Community standards and enforcement guidelines. - Licensing Notice (
NOTICE.md) β Detailed separation between Apple Inc. font binary licensing and MIT open-source tooling.
- Tooling, web studio, tests, and documentation: MIT License Β© 2026 soyelx.
- Font binaries (
fonts/**): Β© Apple Inc., governed by the License Agreement for the Apple San Francisco Font. Not covered by MIT. SeeNOTICE.md.