Skip to content
soyelxPublic

About

🍎 Apple's SF Pro typeface: all 47 official fonts (Display, Text, Rounded & Variable), sorted into family folders, checked automatically and listed in a JSON index. Fonts © Apple Inc.; docs & tooling MIT.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FS-Pro

Enterprise-grade San Francisco Pro font collection, automated OpenType/TrueType binary validation engine, SHA-256 manifest indexer, and interactive typography specimen studio.

CI CI Check Python 3.10+ TypeScript 5 Font Files: 47 Platform License: MIT (Tooling) Fonts: Apple License

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.


Core Modules

  1. Zero-IO Font Discovery & Naming Parser (tools/catalog.py) β€” Deterministic catalog builder that scans fonts/<family>/ and derives structured FontFile metadata (family, style, italic, variable, weight, and format) directly from folder layout and file names without opening binary streams. Enforces strict regex patterns (_STATIC_RE and _VARIABLE_RE) and normalizes Apple's internal Bold weight class (600) to standard CSS font-weight: 700.
  2. Binary OpenType & TrueType Table Validator (tools/validate.py) β€” High-speed integrity verifier powered by fontTools.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 (CFF for static .otf, glyf + fvar for variable .ttf), validates OS/2.fsSelection bit 0 against italic file names, and audits Apple's embedded copyright notice (name ID 0).
  3. Cryptographic Manifest Indexer (tools/manifest.py & fonts/manifest.json) β€” Generates and verifies the machine-readable schema v1 index at fonts/manifest.json. Streams every font in 1 MiB chunks to compute deterministic sha256 digests, exact byte counts, outline formats, and cssWeight mappings. Supports --check mode for zero-drift CI gating.
  4. Interactive Typography Specimen & Integrity Studio (src/) β€” Modular React + TypeScript + Vite web application running on port 3000. Provides a searchable 47-font binary inventory, an interactive variable-axis specimen lab (wght 1–1000, opsz 17–28, YAXS 400–1000), Apple's 20 pt Display vs. Text optical size advisor, live CSS @font-face / font-variation-settings code generation, and a real-time 47/47 SHA-256 verification matrix.
  5. Dual-Runtime Automated Test Matrix (tests/ & src/utils/fontCatalog.test.ts) β€” Comprehensive pytest suite (tests/test_catalog.py, tests/test_fonts.py) validating naming rules, corrupted binary detection, stray root file guards, and manifest freshness alongside Node built-in node:test unit tests for client-side catalog and audit logic.

Font Inventory Summary

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 pt and SF Pro Display at 20 pt and above. The variable fonts (SF-Pro.ttf, SF-Pro-Italic.ttf) transition smoothly via the opsz (17–28) axis, while the italic variable font adds the YAXS (400–1000) vertical axis.


Architecture & Repository Tree

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)

Quick Start & Verification

1. Clone the Repository

git clone https://github.com/soyelx/FS-Pro-.git
cd FS-Pro-

2. Run the Interactive Web Specimen & Integrity Studio (Node.js)

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/

3. Run the Python Font Validation & Manifest Suite

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 .

4. Install Fonts Locally on Your Workstation

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.

5. Query fonts/manifest.json Programmatically

# List all italic SF Pro Display font paths using jq
jq -r '.fonts[] | select(.family == "SF Pro Display" and .italic) | .path' fonts/manifest.json
import 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]

Documentation

Complete technical documentation is maintained in docs/ and root governance files:


License

  • 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. See NOTICE.md.

About

🍎 Apple's SF Pro typeface: all 47 official fonts (Display, Text, Rounded & Variable), sorted into family folders, checked automatically and listed in a JSON index. Fonts © Apple Inc.; docs & tooling MIT.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages