{"id":16740467,"url":"https://github.com/flopp/go-findfont","last_synced_at":"2025-04-06T18:17:08.478Z","repository":{"id":38361964,"uuid":"54154544","full_name":"flopp/go-findfont","owner":"flopp","description":"A platform-agnostic go (golang) library to easily locate truetype font files in your system's user and system font directories","archived":false,"fork":false,"pushed_at":"2024-04-21T14:45:46.000Z","size":20,"stargazers_count":132,"open_issues_count":4,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T00:58:50.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/flopp.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":"2016-03-17T22:05:29.000Z","updated_at":"2024-09-19T03:40:36.000Z","dependencies_parsed_at":"2024-06-18T13:52:59.715Z","dependency_job_id":"4f2b7efc-bd9e-4038-aa1d-d33c4ce372ce","html_url":"https://github.com/flopp/go-findfont","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopp%2Fgo-findfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopp%2Fgo-findfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopp%2Fgo-findfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopp%2Fgo-findfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flopp","download_url":"https://codeload.github.com/flopp/go-findfont/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526768,"owners_count":20953143,"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":[],"created_at":"2024-10-13T00:58:44.601Z","updated_at":"2025-04-06T18:17:08.454Z","avatar_url":"https://github.com/flopp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PkgGoDev](https://pkg.go.dev/badge/github.com/flopp/go-findfont)](https://pkg.go.dev/github.com/flopp/go-findfont)\n[![Go Report Card](https://goreportcard.com/badge/github.com/flopp/go-findfont)](https://goreportcard.com/report/github.com/flopp/go-findfont)\n[![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/flopp/go-findfont/)\n\n# go-findfont\nA platform-agnostic go (golang) library to easily locate truetype font files in your system's user and system font directories.\n\n## What?\n`go-findfont` is a golang library that allows you to locate font file on your system. The library is currently aware of the default font directories on Linux/Unix, Windows, and MacOS.\n\n## How?\n\n### Installation\n\nInstalling `go-findfont` is as easy as\n\n```bash\ngo get -u github.com/flopp/go-findfont\n```\n\n### Library Usage\n\n```go\n\nimport (\n  \"fmt\"\n  \"io/ioutil\"\n  \n  \"github.com/flopp/go-findfont\"\n  \"github.com/golang/freetype/truetype\"\n)\n\nfunc main() {\n  fontPath, err := findfont.Find(\"arial.ttf\")\n  if err != nil {\n    panic(err)\n  }\n  fmt.Printf(\"Found 'arial.ttf' in '%s'\\n\", fontPath)\n\n  // load the font with the freetype library\n  fontData, err := ioutil.ReadFile(fontPath)\n  if err != nil {\n    panic(err)\n  }\n  font, err := truetype.Parse(fontData)\n  if err != nil {\n    panic(err)\n  }\n\n  // use the font...\n}\n```\n\n## License\nCopyright 2016 Florian Pigorsch. All rights reserved.\n\nUse of this source code is governed by a MIT-style license that can be found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflopp%2Fgo-findfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflopp%2Fgo-findfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflopp%2Fgo-findfont/lists"}