{"id":19993934,"url":"https://github.com/matprec/rust-font-loader","last_synced_at":"2025-04-05T20:08:58.500Z","repository":{"id":57631369,"uuid":"68401157","full_name":"matprec/rust-font-loader","owner":"matprec","description":"A font loading utility written in rust.","archived":false,"fork":false,"pushed_at":"2023-07-07T13:11:20.000Z","size":52,"stargazers_count":51,"open_issues_count":11,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T07:58:17.119Z","etag":null,"topics":["coretext","font","font-loader","fontconfig","linux","macos","rust","unix","windows","wingdi"],"latest_commit_sha":null,"homepage":null,"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/matprec.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}},"created_at":"2016-09-16T17:37:07.000Z","updated_at":"2024-07-24T13:25:37.000Z","dependencies_parsed_at":"2024-01-15T09:06:33.291Z","dependency_job_id":"67e7525b-fccf-4ad5-a0ad-1b63fcba86f0","html_url":"https://github.com/matprec/rust-font-loader","commit_stats":{"total_commits":61,"total_committers":14,"mean_commits":4.357142857142857,"dds":"0.34426229508196726","last_synced_commit":"55b4653a82f264dcba03afe75cbcbd93c66d07e8"},"previous_names":["msleepypanda/rust-font-loader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matprec%2Frust-font-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matprec%2Frust-font-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matprec%2Frust-font-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matprec%2Frust-font-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matprec","download_url":"https://codeload.github.com/matprec/rust-font-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393572,"owners_count":20931813,"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":["coretext","font","font-loader","fontconfig","linux","macos","rust","unix","windows","wingdi"],"created_at":"2024-11-13T04:53:30.020Z","updated_at":"2025-04-05T20:08:58.456Z","avatar_url":"https://github.com/matprec.png","language":"Rust","readme":"# Font-Loader\nA font loading utility written in and for Rust.\n\n[![Build Status](https://travis-ci.org/matprec/rust-font-loader.svg?branch=master)](https://travis-ci.org/matprec/rust-font-loader)\n\nCurrently supported platforms:\n\n* Windows\n* Mac\n* Every platform supporting Fontconfig\n  * Unix\n  * Linux\n\n# Usage\n## Linux, Unix:\nFontconfig is required on Linux and Unix, as it is the default Fontmanagement utility on these platforms.\n```\nsudo apt-get install libfontconfig libfontconfig1-dev\n```\n\n# Example\n## Cargo.toml\n```toml\n[dependencies]\nfont-loader = \"https://github.com/matprec/rust-font-loader\"\n```\n\n## main.rs:\n```rust\nextern crate font_loader as fonts;\n\nuse fonts::system_fonts;\n\nfn main() {\n\t// Enumerate all fonts\n    let sysfonts = system_fonts::query_all();\n    for string in \u0026sysfonts {\n        println!(\"{}\", string);\n    }\n\n\tlet mut property = system_fonts::FontPropertyBuilder::new().monospace().build();\n\tlet sysfonts = system_fonts::query_specific(\u0026mut property);\n\tfor string in \u0026sysfonts {\n\t\tprintln!(\"Monospaced font: {}\", string);\n\t}\n\n\tlet property = system_fonts::FontPropertyBuilder::new().family(\"Arial\").build();\n\tlet (font, _) = system_fonts::get(\u0026property).unwrap();\n\tprintln!(\"{:?}\", \u0026font[..50]);\n}\n```\n\n# License\n\nThe MIT License (MIT)\nCopyright (c) font-loader Developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatprec%2Frust-font-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatprec%2Frust-font-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatprec%2Frust-font-loader/lists"}