{"id":36945783,"url":"https://github.com/bearcove/fontcull","last_synced_at":"2026-01-23T15:15:12.198Z","repository":{"id":326944924,"uuid":"1105980846","full_name":"bearcove/fontcull","owner":"bearcove","description":"Font subsetting for Rust (C++ present only for woff2 compression)","archived":false,"fork":false,"pushed_at":"2025-12-03T15:23:39.000Z","size":9005,"stargazers_count":34,"open_issues_count":4,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T11:20:24.255Z","etag":null,"topics":["fonts","subsetting","ttf","woff2"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bearcove.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"fasterthanlime","patreon":"fasterthanlime"}},"created_at":"2025-11-28T12:47:46.000Z","updated_at":"2026-01-09T15:51:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bearcove/fontcull","commit_stats":null,"previous_names":["fasterthanlime/fontcull"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/bearcove/fontcull","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Ffontcull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Ffontcull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Ffontcull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Ffontcull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearcove","download_url":"https://codeload.github.com/bearcove/fontcull/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Ffontcull/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28384014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T10:34:27.190Z","status":"ssl_error","status_checked_at":"2026-01-13T10:34:26.289Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fonts","subsetting","ttf","woff2"],"created_at":"2026-01-13T11:21:35.056Z","updated_at":"2026-01-23T15:15:12.185Z","avatar_url":"https://github.com/bearcove.png","language":"Rust","readme":"# fontcull\n\n[![Crates.io](https://img.shields.io/crates/v/fontcull.svg)](https://crates.io/crates/fontcull)\n[![Documentation](https://docs.rs/fontcull/badge.svg)](https://docs.rs/fontcull)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nPure Rust font subsetting library powered by [klippa](https://github.com/googlefonts/fontations).\n\n## Library usage\n\n```rust\nuse fontcull::{subset_font_to_woff2, decompress_font};\nuse std::collections::HashSet;\n\n// Subset a font to only include specific characters\nlet font_data = std::fs::read(\"font.ttf\").unwrap();\nlet chars: HashSet\u003cchar\u003e = \"Hello World\".chars().collect();\nlet woff2 = subset_font_to_woff2(\u0026font_data, \u0026chars).unwrap();\nstd::fs::write(\"font-subset.woff2\", woff2).unwrap();\n\n// Can also decompress WOFF/WOFF2 to TTF\nlet woff2_data = std::fs::read(\"font.woff2\").unwrap();\nlet ttf_data = decompress_font(\u0026woff2_data).unwrap();\n```\n\n### Features\n\n- `static-analysis`: Static HTML/CSS parsing for font usage detection\n\n## CLI\n\nThe `fontcull-cli` crate provides a command-line tool that:\n\n1. Opens URLs in a headless browser (via chromiumoxide)\n2. Extracts all glyphs/characters used on the page (including `::before`/`::after` pseudo-elements)\n3. Optionally spiders the site to find more pages\n4. Subsets font files to only include the characters actually used\n\n### Install\n\n```bash\ncargo install fontcull-cli\n```\n\nRequires Chrome/Chromium installed (uses your system browser, no specific version needed).\n\n### Usage\n\n```bash\n# Just get the unicode range of characters used\nfontcull https://example.com\n\n# Subset fonts based on page content\nfontcull https://example.com --subset=fonts/*.ttf\n\n# Spider multiple pages\nfontcull https://example.com --spider-limit=10 --subset=fonts/*.ttf\n\n# Filter by font family\nfontcull https://example.com --subset=fonts/*.ttf --family=\"My Font\"\n\n# Add extra characters to always include\nfontcull https://example.com --subset=fonts/*.ttf --whitelist=\"0123456789\"\n```\n\n## Sponsors\n\nThanks to all individual sponsors:\n\n\u003cp\u003e\n\u003ca href=\"https://github.com/sponsors/fasterthanlime\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/github-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/github-light.svg\" height=\"40\" alt=\"GitHub Sponsors\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003ca href=\"https://patreon.com/fasterthanlime\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/patreon-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/patreon-light.svg\" height=\"40\" alt=\"Patreon\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n...along with corporate sponsors:\n\n\u003cp\u003e\n\u003ca href=\"https://zed.dev\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/zed-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/zed-light.svg\" height=\"40\" alt=\"Zed\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003ca href=\"https://depot.dev?utm_source=fontcull\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/depot-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/depot-light.svg\" height=\"40\" alt=\"Depot\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n...without whom this work could not exist.\n","funding_links":["https://github.com/sponsors/fasterthanlime","https://patreon.com/fasterthanlime"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearcove%2Ffontcull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearcove%2Ffontcull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearcove%2Ffontcull/lists"}