{"id":19269148,"url":"https://github.com/typst/subsetter","last_synced_at":"2025-04-21T20:32:26.134Z","repository":{"id":50669505,"uuid":"499788218","full_name":"typst/subsetter","owner":"typst","description":"Reduces the size and coverage of OpenType fonts.","archived":false,"fork":false,"pushed_at":"2025-04-02T08:48:51.000Z","size":15922,"stargazers_count":48,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T18:46:50.403Z","etag":null,"topics":["opentype","pdf","subsetting"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2022-06-04T10:03:41.000Z","updated_at":"2025-04-10T01:37:01.000Z","dependencies_parsed_at":"2024-06-16T09:49:24.389Z","dependency_job_id":"dae6dc8b-d9cc-48aa-8f34-db0ecf83fa3a","html_url":"https://github.com/typst/subsetter","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"fcef54e3bdda546d8db43db0249fe9a15b4b1403"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Fsubsetter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Fsubsetter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Fsubsetter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Fsubsetter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typst","download_url":"https://codeload.github.com/typst/subsetter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250128334,"owners_count":21379492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["opentype","pdf","subsetting"],"created_at":"2024-11-09T20:18:41.396Z","updated_at":"2025-04-21T20:32:26.128Z","avatar_url":"https://github.com/typst.png","language":"Rust","readme":"# subsetter\n[![Crates.io](https://img.shields.io/crates/v/subsetter.svg)](https://crates.io/crates/subsetter)\n[![Documentation](https://docs.rs/subsetter/badge.svg)](https://docs.rs/subsetter)\n\nReduces the size and coverage of OpenType fonts with TrueType or CFF outlines for embedding\nin PDFs. You can in general expect very good results in terms of font size, as most of the things\nthat can be subsetted are also subsetted.\n\n# Scope\n**Note that the resulting font subsets will most likely be unusable in any other contexts than PDF writing,\nsince a lot of information will be removed from the font which is not necessary in PDFs, but is\nnecessary in other contexts.** This is on purpose, and for now, there are no plans to expand the\nscope of this crate to become a general purpose subsetter, as this is a massive undertaking and\nwill make the already complex codebase even more complex.\n\nIn the future,\n[klippa](https://github.com/googlefonts/fontations/tree/main/klippa) will hopefully fill this gap.\n\nFor an example on how to use this crate, have a look at the \n[documentation](https://docs.rs/subsetter/latest/subsetter/).\n\n## Limitations\nAs mentioned above, this crate is specifically aimed at subsetting a font with the purpose of \nincluding it in a PDF file. For any other purposes, this crate will most likely not be very useful.\n\nPotential future work could include allowing to define variation coordinates for which to generate\nthe subset for. However, apart from that there are no plans to increase the scope of this crate, apart from\nfixing bugs and adding new APIs to the existing interface.\n\n## Safety and Dependencies\nThis crate forbids unsafe code and has only a dependency on the `fxhash` crate.\n\n## License\nThis crate is dual-licensed under the MIT and Apache 2.0 licenses.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypst%2Fsubsetter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypst%2Fsubsetter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypst%2Fsubsetter/lists"}