{"id":13709514,"url":"https://github.com/danielgatis/go-findfont","last_synced_at":"2026-04-23T06:33:27.463Z","repository":{"id":79824962,"uuid":"267594951","full_name":"danielgatis/go-findfont","owner":"danielgatis","description":"Find system fonts through the fontconfig library (a.k.a `fc-match`).","archived":false,"fork":false,"pushed_at":"2025-12-26T02:09:12.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-10T22:06:14.050Z","etag":null,"topics":["font","fontconfig","fontconfig-library","fonts","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/danielgatis.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":"2020-05-28T13:17:46.000Z","updated_at":"2025-12-26T02:06:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"bac972b5-7eda-4f94-a1ce-d86adf2247e2","html_url":"https://github.com/danielgatis/go-findfont","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/danielgatis/go-findfont","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-findfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-findfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-findfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-findfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgatis","download_url":"https://codeload.github.com/danielgatis/go-findfont/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgatis%2Fgo-findfont/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32169657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"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":["font","fontconfig","fontconfig-library","fonts","go","golang"],"created_at":"2024-08-02T23:00:40.639Z","updated_at":"2026-04-23T06:33:27.439Z","avatar_url":"https://github.com/danielgatis.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# go-findfont\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/danielgatis/go-findfont?style=flat-square)](https://goreportcard.com/report/github.com/danielgatis/go-findfont)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/danielgatis/go-findfont/master/LICENSE)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/danielgatis/go-findfont)\n\nA pure Go library to find fonts on the system. Works on macOS, Linux, and Windows without any external dependencies.\n\n## Install\n\n```bash\ngo get -u github.com/danielgatis/go-findfont\n```\n\nAnd then import the package in your code:\n\n```go\nimport \"github.com/danielgatis/go-findfont/findfont\"\n```\n\n## Usage\n\n### Find a font by name\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/danielgatis/go-findfont/findfont\"\n)\n\nfunc main() {\n\tpath, err := findfont.Find(\"Arial\")\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"Error: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Println(path)\n}\n```\n\n```\n❯ go run main.go\n/System/Library/Fonts/Supplemental/Arial.ttf\n```\n\n### List all fonts\n\n```go\nfonts := findfont.List()\nfor _, f := range fonts {\n\tfmt.Println(f)\n}\n```\n\n### Find with custom suffixes\n\n```go\npath, err := findfont.FindWithSuffixes(\"MyFont\", []string{\".ttf\", \".otf\"})\n```\n\n## CLI\n\nYou can also use it as a command-line tool:\n\n```bash\n# Find a font\ngo-findfont Arial\n\n# List all fonts\ngo-findfont --list\n```\n\n## Supported Platforms\n\n| Platform | Font Directories |\n|----------|------------------|\n| macOS    | `~/Library/Fonts`, `/Library/Fonts`, `/System/Library/Fonts` |\n| Linux    | `~/.fonts`, `~/.local/share/fonts`, `/usr/share/fonts`, `/usr/local/share/fonts` |\n| Windows  | `%windir%\\Fonts`, `%localappdata%\\Microsoft\\Windows\\Fonts` |\n\n## License\n\nCopyright (c) 2020-present [Daniel Gatis](https://github.com/danielgatis)\n\nLicensed under [MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-findfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgatis%2Fgo-findfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgatis%2Fgo-findfont/lists"}