{"id":15691558,"url":"https://github.com/blaind/ttf2mesh-rs","last_synced_at":"2025-08-22T07:30:47.574Z","repository":{"id":38377384,"uuid":"391326024","full_name":"blaind/ttf2mesh-rs","owner":"blaind","description":"Rust API for ttf2mesh","archived":false,"fork":false,"pushed_at":"2024-08-19T00:14:39.000Z","size":146,"stargazers_count":8,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-30T10:08:47.155Z","etag":null,"topics":["glyphs","mesh-generation","rust","ttf"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/blaind.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":"2021-07-31T10:38:07.000Z","updated_at":"2024-04-26T19:54:22.000Z","dependencies_parsed_at":"2024-10-03T18:32:23.496Z","dependency_job_id":null,"html_url":"https://github.com/blaind/ttf2mesh-rs","commit_stats":{"total_commits":54,"total_committers":3,"mean_commits":18.0,"dds":0.05555555555555558,"last_synced_commit":"778b11c76a29b84315a791693bedd05bf23512df"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/blaind/ttf2mesh-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaind%2Fttf2mesh-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaind%2Fttf2mesh-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaind%2Fttf2mesh-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaind%2Fttf2mesh-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blaind","download_url":"https://codeload.github.com/blaind/ttf2mesh-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaind%2Fttf2mesh-rs/sbom","scorecard":{"id":242441,"data":{"date":"2025-08-11","repo":{"name":"github.com/blaind/ttf2mesh-rs","commit":"d662262f10bc8cf7d81959424581072f38c2d16e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/blaind/ttf2mesh-rs/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/blaind/ttf2mesh-rs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/blaind/ttf2mesh-rs/ci.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/fuzz_target_1.rs:2"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T06:54:33.055Z","repository_id":38377384,"created_at":"2025-08-17T06:54:33.055Z","updated_at":"2025-08-17T06:54:33.055Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271604713,"owners_count":24788759,"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-22T02:00:08.480Z","response_time":65,"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":["glyphs","mesh-generation","rust","ttf"],"created_at":"2024-10-03T18:22:18.504Z","updated_at":"2025-08-22T07:30:42.555Z","avatar_url":"https://github.com/blaind.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttf2mesh \u0026emsp; [![Build Status]][actions] [![Latest Version]][crates.io] [![Docs Version]][docs]\n\n[build status]: https://img.shields.io/github/workflow/status/blaind/ttf2mesh-rs/test\n[actions]: https://github.com/blaind/ttf2mesh/actions?query=branch%3Amain\n[latest version]: https://img.shields.io/crates/v/ttf2mesh.svg\n[crates.io]: https://crates.io/crates/ttf2mesh\n[docs version]: https://docs.rs/ttf2mesh/badge.svg\n[docs]: https://docs.rs/ttf2mesh\n\nA high-level Rust wrapper API for [fetisov's ttf2mesh](https://github.com/fetisov/ttf2mesh/) library for generating a 2d/3d mesh (vertices, indices and normals [only for 3D]) from TrueType (`.ttf`) glyphs.\n\n## Installing\n\nPrequisites:\n\n    apt-get install build-essential patch\n\nAdd to `Cargo.toml`:\n\n    [dependencies]\n    ttf2mesh = \"*\" # change to latest version\n\n## Examples\n\nSee [examples](/examples) -folder and crate docs.\n\nSimple usage:\n\n```rust\nuse ttf2mesh::{Quality, TTFFile, Value};\n\nlet mut font = TTFFile::from_file(\"fonts/FiraMono-Medium.ttf\").unwrap();\n\nfor char in \"Hello_World\".chars() {\n    let mut glyph = font.glyph_from_char(char).unwrap();\n    let mesh = glyph.to_2d_mesh(Quality::Medium).unwrap();\n\n    println!(\"Mesh data char {:?}\", char);\n    println!(\n        \"- vertices: [{}]\",\n        mesh.iter_vertices()\n            .map(|v| {\n                let v = v.val();\n                format!(\"({:.3}, {:.2})\", v.0, v.1)\n            })\n            .collect::\u003cVec\u003c_\u003e\u003e()\n            .join(\", \")\n    );\n    println!(\n        \"- faces: [{}]\",\n        mesh.iter_faces()\n            .map(|v| {\n                let v = v.val();\n                format!(\"({}, {}, {})\", v.0, v.1, v.2)\n            })\n            .collect::\u003cVec\u003c_\u003e\u003e()\n            .join(\", \")\n    );\n    println!(\"\");\n}\n\n\n```\n\n## Security\n\nThe API surface (mainly `.ttf` loading) has been fuzzed with [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz).\n\n## Development\n\nInstall prequisites (see above).\n\nClone repository:\n\n    git clone https://github.com/blaind/ttf2mesh-rs.git\n\nUpdate submodules\n\n    git submodule update --init\n\nDevelop\n\n## License\n\nLicensed under \u003ca href=\"LICENSE\"\u003eMIT license\u003c/a\u003e\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the software by you, shall be licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaind%2Fttf2mesh-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblaind%2Fttf2mesh-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaind%2Fttf2mesh-rs/lists"}