{"id":23468379,"url":"https://github.com/dikkadev/goafm","last_synced_at":"2025-08-02T21:15:22.780Z","repository":{"id":65695783,"uuid":"596998507","full_name":"dikkadev/goafm","owner":"dikkadev","description":"A Go library for parsing Adobe Font Metrics (AFM) files. Supports the full specification.  Adobe Font Metrics (AFM) files provide information about the size, position, and spacing of characters in a font. They are used by software applications to correctly display text using a specific font. ","archived":false,"fork":false,"pushed_at":"2023-02-11T08:27:10.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T23:55:11.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dikkadev.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":"2023-02-03T11:57:58.000Z","updated_at":"2023-02-11T10:13:18.000Z","dependencies_parsed_at":"2023-02-18T07:15:27.513Z","dependency_job_id":null,"html_url":"https://github.com/dikkadev/goafm","commit_stats":null,"previous_names":["dikkadev/goafm"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dikkadev/goafm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fgoafm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fgoafm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fgoafm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fgoafm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dikkadev","download_url":"https://codeload.github.com/dikkadev/goafm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fgoafm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268455422,"owners_count":24253170,"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-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-12-24T13:52:52.918Z","updated_at":"2025-08-02T21:15:22.750Z","avatar_url":"https://github.com/dikkadev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goafm\r\n\r\nA Go library for parsing Adobe Font Metrics (AFM) files. Supports the full specification.\r\n\r\nAdobe Font Metrics (AFM) files provide information about the size, position, and spacing of characters in a font. They are used by software applications to correctly display text using a specific font. The `goafm` library provides a convenient way to parse AFM files and extract the information they contain.\r\n\r\n## Features\r\n\r\nParsing \u0026 extraction of the following information:\r\n- Font metrics\r\n- Character metrics\r\n- Kerning pairs\r\n- Track kerning\r\n- Composites Characters\r\n\r\n## Installation\r\n\r\nUse `go get` to install the library:\r\n\r\n```bash\r\ngo get github.com/Sett17/goafm\r\n```\r\n\r\n## Usage\r\n\r\n`ParseFile` takes in a `filename` and returns a `FontMetric` pointer and an `error`.\r\n\r\n`Parse` takes in a `byte slice` and returns a `FontMetric` pointer and an `error`.\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n  \"fmt\"\r\n\r\n  \"github.com/Sett17/goafm\"\r\n)\r\n\r\nfunc main() {\r\n  font, err := goafm.ParseFile(\"font.afm\")\r\n  if err != nil {\r\n    panic(err)\r\n  }\r\n  fmt.Printf(\"%#v\", font)\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdikkadev%2Fgoafm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdikkadev%2Fgoafm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdikkadev%2Fgoafm/lists"}