{"id":21768260,"url":"https://github.com/averms/fontname-from-filename","last_synced_at":"2026-04-17T01:31:04.773Z","repository":{"id":114683220,"uuid":"137127951","full_name":"averms/fontname-from-filename","owner":"averms","description":"A quick and dirty script that changes font metadata using the filename","archived":false,"fork":false,"pushed_at":"2021-09-22T17:03:08.000Z","size":448,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T05:44:07.536Z","etag":null,"topics":["font"],"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/averms.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-12T21:08:24.000Z","updated_at":"2022-06-02T19:53:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"e626be5d-5158-464b-b94e-6f314c88acc2","html_url":"https://github.com/averms/fontname-from-filename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/averms/fontname-from-filename","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Ffontname-from-filename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Ffontname-from-filename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Ffontname-from-filename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Ffontname-from-filename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/averms","download_url":"https://codeload.github.com/averms/fontname-from-filename/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Ffontname-from-filename/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31911428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["font"],"created_at":"2024-11-26T13:35:08.957Z","updated_at":"2026-04-17T01:31:04.754Z","avatar_url":"https://github.com/averms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fontname-from-filename\n\nA quick and dirty script that changes font metadata using the filename.\n\n## Installation\n\nRequires a Python environment with fonttools.\n\n```sh\n# fff.py is a bit easier to type but use whatever you want\ncurl -L https://github.com/averms/fontname-from-filename/raw/master/fontname-from-filename.py -o fff.py\nchmod u+x fff.py\n```\n\n## Platforms\n\nShould work on all platforms, but only tested on macOS and Linux.\n\n## Example\n\n```\n├── Rival Black Italic.otf\n├── Rival Black.otf\n├── Rival Bold Italic.otf\n├── Rival Bold.otf\n├── Rival ExtraBold Italic.otf\n├── Rival ExtraBold.otf\n├── Rival Light Italic.otf\n├── Rival Light.otf\n├── Rival Medium Italic.otf\n├── Rival Medium.otf\n├── Rival Regular Italic.otf\n├── Rival Regular.otf\n├── Rival UltraLight Italic.otf\n└── Rival UltraLight.otf\n```\n\nSay the metadata of these fonts are messed up for whatever reason, but the\nfilenames are correct. This script will fix that by changing records 1, 2, 4,\nand 6 of the [name table][1].\n\nWorks for fonts with more than one word family names if you change the\n`FONT_FAMILY_WORD_COUNT` variable in the beginning of the script. For example,\nif the font family is called \"Source Code Pro\" you should change it to 3.\n\n[1]: https://docs.microsoft.com/en-us/typography/opentype/spec/name\n\n## Limitations\n\nDoes not change the name of CFF fonts yet.\nYou have to change a constant on the source code for it to work with multiple\nword family names.\n\n## Acknowledgements\n\nThanks to Chris Simpkins for his work on\n[fontname.py](https://github.com/chrissimpkins/fontname.py).\n\nThis code is distributed under the MIT/Expat License. See LICENSE file for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverms%2Ffontname-from-filename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faverms%2Ffontname-from-filename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverms%2Ffontname-from-filename/lists"}