{"id":28389733,"url":"https://github.com/hexops/font-assets","last_synced_at":"2025-06-27T17:31:48.608Z","repository":{"id":177135729,"uuid":"622704198","full_name":"hexops/font-assets","owner":"hexops","description":"Various fonts packaged for the Zig build system","archived":false,"fork":false,"pushed_at":"2025-02-26T05:25:58.000Z","size":658,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-22T08:52:53.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"slimsag"}},"created_at":"2023-04-02T21:53:36.000Z","updated_at":"2025-02-26T05:26:02.000Z","dependencies_parsed_at":"2024-10-18T12:04:27.018Z","dependency_job_id":null,"html_url":"https://github.com/hexops/font-assets","commit_stats":null,"previous_names":["hexops/font-assets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hexops/font-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Ffont-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Ffont-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Ffont-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Ffont-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexops","download_url":"https://codeload.github.com/hexops/font-assets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexops%2Ffont-assets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262301822,"owners_count":23290146,"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":"2025-05-31T01:39:11.711Z","updated_at":"2025-06-27T17:31:48.600Z","avatar_url":"https://github.com/hexops.png","language":"Zig","readme":"# font-assets: a few fonts packaged for Zig\n\nThis repository contains a few fonts packaged via the Zig package manager. They are primarily what is needed to test mach-freetype, as well as what is used in Mach examples.\n\n## Getting started\n\n### Adding dependency\n\nCreate a `build.zig.zon` file in your project (replace `$LATEST_COMMIT` with the latest commit hash):\n\n```\n.{\n    .name = \"mypkg\",\n    .version = \"0.1.0\",\n    .dependencies = .{\n        .mach_ggml = .{\n            .url = \"https://github.com/hexops/font-assets/archive/$LATEST_COMMIT.tar.gz\",\n        },\n    },\n}\n```\n\nRun `zig build` in your project, and the compiler instruct you to add a `.hash = \"...\"` field next to `.url`.\n\nThen use the dependency in your `build.zig`:\n\n```zig\n...\npub fn build(b: *Build) void {\n    ...\n    exe.addModule(\"font-assets\", b.dependency(\"font_assets\", .{\n        .target = target,\n        .optimize = optimize,\n    }).module(\"font-assets\"));\n}\n```\n\nYou may then `const font_assets = @import(\"font-assets\");` and refer to the embedded files exposed in `main.zig`.\n\n### Usage\n\n```zig\nconst font_assets = @import(\"font-assets\");\n\n// access the embedded file byte arrays, e.g.\n// font_assets.fira_sans_regular_ttf\n```\n\n## Join the community\n\nJoin the Mach community [on Discord](https://discord.gg/XNG3NZgCqp) to discuss this project, ask questions, get help, etc.\n\n## Issues\n\nIssues are tracked in the [main Mach repository](https://github.com/hexops/mach/issues?q=is%3Aissue+is%3Aopen+label%3Afont-assets).\n","funding_links":["https://github.com/sponsors/slimsag"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexops%2Ffont-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexops%2Ffont-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexops%2Ffont-assets/lists"}