{"id":19074796,"url":"https://github.com/seokminhong/korsubset","last_synced_at":"2025-08-27T02:07:26.070Z","repository":{"id":62574585,"uuid":"342886252","full_name":"SeokminHong/korsubset","owner":"SeokminHong","description":"A font subsetting tool for Korean fonts","archived":false,"fork":false,"pushed_at":"2021-02-28T03:23:20.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T02:54:23.905Z","etag":null,"topics":["font","fonttools","korean","python","subset","woff","woff2"],"latest_commit_sha":null,"homepage":"","language":"Python","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/SeokminHong.png","metadata":{"files":{"readme":"README-ko.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-27T15:13:54.000Z","updated_at":"2025-03-24T01:48:34.000Z","dependencies_parsed_at":"2022-11-03T18:45:27.539Z","dependency_job_id":null,"html_url":"https://github.com/SeokminHong/korsubset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SeokminHong/korsubset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeokminHong%2Fkorsubset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeokminHong%2Fkorsubset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeokminHong%2Fkorsubset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeokminHong%2Fkorsubset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeokminHong","download_url":"https://codeload.github.com/SeokminHong/korsubset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeokminHong%2Fkorsubset/sbom","scorecard":{"id":127754,"data":{"date":"2025-08-11","repo":{"name":"github.com/SeokminHong/korsubset","commit":"88d37db2955fc9314232b414d8614f1cbdc6282a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T04:25:50.563Z","repository_id":62574585,"created_at":"2025-08-16T04:25:50.563Z","updated_at":"2025-08-16T04:25:50.563Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272279503,"owners_count":24905909,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["font","fonttools","korean","python","subset","woff","woff2"],"created_at":"2024-11-09T01:52:30.090Z","updated_at":"2025-08-27T02:07:26.032Z","avatar_url":"https://github.com/SeokminHong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KorSubset\n\n한글 폰트 서브셋을 간편하게 만들 수 있는 도구입니다.\n\n## 개요\n\n모든 한글을 올바르게 표시하기 위한 글리프 수는 17,388개에 달하기 때문에 상당한 용량을 차지합니다. 따라서 용량이 곧 로딩 속도와 직결되는 웹에서 한글 폰트를 사용할때는 주로 서브셋(subset)을 만들어 사용하곤 했습니다. KS X 1001 서브셋이 가장 대표적이지만, 이는 2350자밖에 지원하지 않으므로 외래어 표기 등에서 불편함을 느껴야 했습니다. 또한, 사용자의 입력이 가능한 영역에는 어쩔 수 없이 전체 폰트를 내려받아야 합니다.\n\n2018년 Google에서 발표한 [Google Fonts + 한국어](https://googlefonts.github.io/korean/) 프로젝트는 이러한 불편함을 해결하기 위하여, 머신 러닝 기반으로 한글을 120개의 그룹으로 나누어 호스팅하고 있습니다. CSS의 `unicode-range` 속성을 사용하여 현재 페이지를 로드하는 데에 필요한 서브셋들만 내려받을 수 있으므로 로딩 속도를 상당히 단축시킬 수 있는 방법입니다. 그러나 Google Fonts에서 제공하는 폰트만 사용할 수 있다는 단점이 있기 때문에, 원하는 폰트를 사용할 수 없다는 한계가 있습니다.\n\n따라서 원하는 폰트를 Google Fonts의 서브셋과 같은 양식으로 서브세팅을 하고, CSS 파일까지 생성해주는 스크립트를 만들게 되었습니다. WOFF 및 WOFF2 확장자로 폰트를 변환하여 더욱 적은 용량으로 호스팅할 수 있으며, font의 CSS 속성도 모두 인자를 사용하여 지정 가능합니다.\n\n## 설치\n\n```shell\npip install korsubset\n```\n\n## 사용법\n\n```shell\nkorsubset {font_name}\n```\n\n### 예시\n\n```shell\nkorsubset my_font.otf --output-dir=./my_font/ --font-url=/my_font/\n```\n\n### 옵션\n\n| 이름             | 설명                                                         | 기본값             |\n| ---------------- | ------------------------------------------------------------ | ------------------ |\n| `-h`, `--help`   | 도움말을 표시                                                |                    |\n| `-q`, `--quiet`  | 표준 출력으로 로그 메시지를 출력하지 않음                    |                    |\n| `--output-dir=`  | 서브셋이 생성될 디렉토리                                     | `./output/`        |\n| `--noexport-css` | 이 플래그가 있으면 CSS 파일이 생성되지 않음                  |                    |\n| `--font-url=`    | CSS 파일의 `src` 프로퍼티의 경로                             | `/`                |\n| `--family=`      | CSS 파일의 `family` 프로퍼티의 값                            | 폰트 파일의 family |\n| `--style=`       | CSS 파일의 `style` 프로퍼티의 값                             | 폰트 파일의 style  |\n| `--weight=`      | CSS 파일의 `weight` 프로퍼티의 값                            | `400`              |\n| `--format=`      | 출력 확장자의 종류. `woff`, `woff2` 혹은 `woff,woff2`가 가능 | `woff2`            |\n\n## 주의사항\n\n이 스크립트는 폰트를 변형하여 서브셋을 생성합니다. 폰트의 라이선스를 확인하고 사용해 주시기 바랍니다. 또한, 이 스크립트는 일반적인 한글 폰트에 대한 유니코드 범위만을 포함합니다. 원래 폰트에 포함된 합자(ligature), 이모지(emoji), 한자와 같은 문자들이 소실될 수 있습니다.\n\n## TODO\n\n- [ ] 테스트 추가.\n- [ ] .woff, .woff2 입력 지원.\n- [ ] ~~.eot, .ttf, .otf 출력 지원.~~\n- [ ] CSS `@font-face`의 모든 프로퍼티 지원.\n- [ ] 유니코드 범위 커스텀 지원.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseokminhong%2Fkorsubset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseokminhong%2Fkorsubset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseokminhong%2Fkorsubset/lists"}